Add "GCC Machine Description" language.

This commit is contained in:
Lars Brinkhoff
2016-06-30 12:48:08 +02:00
parent 6493b48434
commit 17168d5fdc
3 changed files with 6680 additions and 0 deletions

View File

@@ -239,6 +239,14 @@ module Linguist
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|
if /(^\s*module)|let rec |match\s+(\S+\s)+with/.match(data)
Language["OCaml"]