mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 04:18:48 +00:00
Add .ms to GAS.
This commit is contained in:
@@ -295,7 +295,7 @@ module Linguist
|
|||||||
Language["Common Lisp"]
|
Language["Common Lisp"]
|
||||||
elsif /^(%[%{}]xs|<.*>)/.match(data)
|
elsif /^(%[%{}]xs|<.*>)/.match(data)
|
||||||
Language["Lex"]
|
Language["Lex"]
|
||||||
elsif /^\.[a-z][a-z](\s|$)/.match(data)
|
elsif /^\.[a-z][a-z](\s|$)/i.match(data)
|
||||||
Language["Groff"]
|
Language["Groff"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -307,5 +307,13 @@ module Linguist
|
|||||||
Language["Nemerle"]
|
Language["Nemerle"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
disambiguate "GAS", "Groff" do |data|
|
||||||
|
if /^[.'][a-z][a-z](\s|$)/i.match(data)
|
||||||
|
Language["Groff"]
|
||||||
|
elsif /((^|\s)move?[. ])|\.(include|globa?l)\s/.match(data)
|
||||||
|
Language["GAS"]
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1041,6 +1041,7 @@ GAS:
|
|||||||
group: Assembly
|
group: Assembly
|
||||||
extensions:
|
extensions:
|
||||||
- .s
|
- .s
|
||||||
|
- .ms
|
||||||
tm_scope: source.asm.x86
|
tm_scope: source.asm.x86
|
||||||
ace_mode: assembly_x86
|
ace_mode: assembly_x86
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user