lib/rouge/guessers/disambiguation.rb in rouge-4.2.1 vs lib/rouge/guessers/disambiguation.rb in rouge-4.3.0
- old
+ new
@@ -138,14 +138,19 @@
next Pascal if matches?(/^(function|begin|var)\b/)
next Pascal if matches?(/\b(end(;|\.))/)
Puppet
end
-
+
disambiguate '*.p' do
next Prolog if contains?(':-')
next Prolog if matches?(/\A\w+(\(\w+\,\s*\w+\))*\./)
next OpenEdge
+ end
+
+ disambiguate '*.st' do
+ next IecST if matches?(/^\s*END_/i)
+ next Smalltalk
end
end
end
end