lib/rouge/guessers/disambiguation.rb in rouge-4.4.0 vs lib/rouge/guessers/disambiguation.rb in rouge-4.5.0

- old
+ new

@@ -64,9 +64,15 @@ def match?(filename) @patterns.any? { |p| test_glob(p, filename) } end end + disambiguate '*.cfg' do + next CiscoIos if matches?(/\A\s*(version|banner|interface)\b/) + + INI + end + disambiguate '*.pl' do next Perl if contains?('my $') next Prolog if contains?(':-') next Prolog if matches?(/\A\w+(\(\w+\,\s*\w+\))*\./) end