lib/linguist/heuristics.rb in github-linguist-4.7.2 vs lib/linguist/heuristics.rb in github-linguist-4.7.3

- old
+ new

@@ -236,11 +236,13 @@ end disambiguate ".ms" do |data| if /^[.'][a-z][a-z](\s|$)/i.match(data) Language["Groff"] - elsif /((^|\s)move?[. ])|\.(include|globa?l)\s/.match(data) + elsif /(?<!\S)\.(include|globa?l)\s/.match(data) || /(?<!\/\*)(\A|\n)\s*\.[A-Za-z]/.match(data.gsub(/"([^\\"]|\\.)*"|'([^\\']|\\.)*'|\\\s*(?:--.*)?\n/, "")) Language["GAS"] + else + Language["MAXScript"] end end disambiguate ".n" do |data| if /^[.']/.match(data)