lib/rouge/guessers/disambiguation.rb in rouge-3.3.0 vs lib/rouge/guessers/disambiguation.rb in rouge-3.4.0

- old
+ new

@@ -99,8 +99,21 @@ next Hack if matches?(/^<\?hh/) next Hack if matches?(/(\(|, ?)\$\$/) Cpp end + + disambiguate '*.plist' do + next XML if matches?(/\A<\?xml\b/) + + Plist + end + + disambiguate '*.sc' do + next Python if matches?(/^#/) + next SuperCollider if matches?(/(?:^~|;$)/) + + next Python + end end end end