mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-09 19:05:31 +00:00
Fix heuristic for Unix Assembly with .ms extension (#3550)
This commit is contained in:
committed by
John Gardner
parent
fa6ae1116f
commit
e80b92e407
@@ -298,7 +298,7 @@ module Linguist
|
||||
if /^[.'][a-z][a-z](\s|$)/i.match(data)
|
||||
Language["Groff"]
|
||||
elsif /(?<!\S)\.(include|globa?l)\s/.match(data) || /(?<!\/\*)(\A|\n)\s*\.[A-Za-z]/.match(data.gsub(/"([^\\"]|\\.)*"|'([^\\']|\\.)*'|\\\s*(?:--.*)?\n/, ""))
|
||||
Language["GAS"]
|
||||
Language["Unix Assembly"]
|
||||
else
|
||||
Language["MAXScript"]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user