mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-29 13:21:01 +00:00
Add .l to Groff.
This commit is contained in:
@@ -290,11 +290,13 @@ module Linguist
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
disambiguate "Common Lisp", "Lex" do |data|
|
disambiguate "Common Lisp", "Lex", "Groff" do |data|
|
||||||
if data.include?("(def(un|macro)\s")
|
if data.include?("(def(un|macro)\s")
|
||||||
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)
|
||||||
|
Language["Groff"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1214,6 +1214,7 @@ Groff:
|
|||||||
- '.5'
|
- '.5'
|
||||||
- '.6'
|
- '.6'
|
||||||
- '.7'
|
- '.7'
|
||||||
|
- .l
|
||||||
tm_scope: text.groff
|
tm_scope: text.groff
|
||||||
aliases:
|
aliases:
|
||||||
- nroff
|
- nroff
|
||||||
|
|||||||
Reference in New Issue
Block a user