lib/rouge/guessers/disambiguation.rb in rouge-3.7.0 vs lib/rouge/guessers/disambiguation.rb in rouge-3.8.0

- old
+ new

@@ -73,10 +73,12 @@ end disambiguate '*.h' do next ObjectiveC if matches?(/@(end|implementation|protocol|property)\b/) next ObjectiveC if contains?('@"') + next Cpp if matches?(/^\s*(?:catch|class|constexpr|namespace|private| + protected|public|template|throw|try|using)\b/x) C end disambiguate '*.m' do @@ -115,9 +117,15 @@ disambiguate '*.sc' do next Python if matches?(/^#/) next SuperCollider if matches?(/(?:^~|;$)/) next Python + end + + disambiguate 'Messages' do + next MsgTrans if matches?(/^[^\s:]+:[^\s:]+/) + + next PlainText end end end end