mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add "GCC Machine Description" language.
This commit is contained in:
@@ -239,6 +239,14 @@ module Linguist
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
disambiguate ".md" do |data|
|
||||||
|
if /^[-a-z0-9=#!\*\[|]/i.match(data)
|
||||||
|
Language["Markdown"]
|
||||||
|
elsif /^(;;|\(define_)/.match(data)
|
||||||
|
Language["GCC machine description"]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
disambiguate ".ml" do |data|
|
disambiguate ".ml" do |data|
|
||||||
if /(^\s*module)|let rec |match\s+(\S+\s)+with/.match(data)
|
if /(^\s*module)|let rec |match\s+(\S+\s)+with/.match(data)
|
||||||
Language["OCaml"]
|
Language["OCaml"]
|
||||||
|
|||||||
@@ -1182,6 +1182,13 @@ GAS:
|
|||||||
tm_scope: source.assembly
|
tm_scope: source.assembly
|
||||||
ace_mode: assembly_x86
|
ace_mode: assembly_x86
|
||||||
|
|
||||||
|
GCC Machine Description:
|
||||||
|
type: programming
|
||||||
|
extensions:
|
||||||
|
- .md
|
||||||
|
tm_scope: source.lisp
|
||||||
|
ace_mode: lisp
|
||||||
|
|
||||||
GDScript:
|
GDScript:
|
||||||
type: programming
|
type: programming
|
||||||
extensions:
|
extensions:
|
||||||
|
|||||||
6665
samples/GCC Machine Description/pdp10.md
Normal file
6665
samples/GCC Machine Description/pdp10.md
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user