mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merge pull request #3126 from Alhadis/roff
Improve Roff support / Add RUNOFF to recognised languages
This commit is contained in:
@@ -359,6 +359,14 @@ module Linguist
|
||||
end
|
||||
end
|
||||
|
||||
disambiguate ".rno" do |data|
|
||||
if /^\.!|^\.end lit(?:eral)?\b/i.match(data)
|
||||
Language["RUNOFF"]
|
||||
elsif /^\.\\" /.match(data)
|
||||
Language["Groff"]
|
||||
end
|
||||
end
|
||||
|
||||
disambiguate ".rpy" do |data|
|
||||
if /(^(import|from|class|def)\s)/m.match(data)
|
||||
Language["Python"]
|
||||
|
||||
@@ -1411,9 +1411,14 @@ Groff:
|
||||
- .n
|
||||
- .rno
|
||||
- .roff
|
||||
tm_scope: text.groff
|
||||
- .tmac
|
||||
filenames:
|
||||
- mmn
|
||||
- mmt
|
||||
tm_scope: text.roff
|
||||
aliases:
|
||||
- nroff
|
||||
- troff
|
||||
ace_mode: text
|
||||
|
||||
Groovy:
|
||||
@@ -3171,6 +3176,15 @@ RMarkdown:
|
||||
- .rmd
|
||||
tm_scope: source.gfm
|
||||
|
||||
RUNOFF:
|
||||
type: markup
|
||||
color: "#665a4e"
|
||||
extensions:
|
||||
- .rnh
|
||||
- .rno
|
||||
tm_scope: text.runoff
|
||||
ace_mode: text
|
||||
|
||||
Racket:
|
||||
type: programming
|
||||
color: "#22228f"
|
||||
|
||||
Reference in New Issue
Block a user