Merge pull request #3126 from Alhadis/roff

Improve Roff support / Add RUNOFF to recognised languages
This commit is contained in:
Lars Brinkhoff
2016-07-29 20:01:54 +02:00
committed by GitHub
13 changed files with 12506 additions and 8 deletions

View File

@@ -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"]

View File

@@ -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"