lib/rouge/guessers/disambiguation.rb in rouge-4.0.0 vs lib/rouge/guessers/disambiguation.rb in rouge-4.0.1

- old
+ new

@@ -131,10 +131,11 @@ next TeX if matches?(/\A\s*(?:\\|%)/) next Apex end disambiguate '*.pp' do - next Pascal if matches?(/\b(function|begin|var)\b/) + next Puppet if matches?(/(::)?([a-z]\w*::)/) + next Pascal if matches?(/^(function|begin|var)\b/) next Pascal if matches?(/\b(end(;|\.))/) Puppet end end