lib/rouge/guessers/disambiguation.rb in rouge-3.6.0 vs lib/rouge/guessers/disambiguation.rb in rouge-3.7.0
- old
+ new
@@ -84,10 +84,14 @@
next ObjectiveC if contains?('@"')
next Mathematica if contains?('(*')
next Mathematica if contains?(':=')
+ next Mason if matches?(/<%(def|method|text|doc|args|flags|attr|init|once|shared|perl|cleanup|filter)([^>]*)(>)/)
+
next Matlab if matches?(/^\s*?%/)
+
+ next Mason if matches? %r!(</?%|<&)!
end
disambiguate '*.php' do
# PHP always takes precedence over Hack
PHP