Merge branch 'master' into associate-heuristic-with-extension

Conflicts:
	lib/linguist/heuristics.rb
This commit is contained in:
Paul Chaignon
2015-06-18 21:54:59 +02:00
42 changed files with 1960 additions and 39 deletions

View File

@@ -302,12 +302,30 @@ module Linguist
end
disambiguate ".l" do |data|
if data.include?("(def(un|macro)\s")
if /\(def(un|macro)\s/.match(data)
Language["Common Lisp"]
elsif /^(%[%{}]xs|<.*>)/.match(data)
Language["Lex"]
elsif /^\.[a-z][a-z](\s|$)/.match(data)
elsif /^\.[a-z][a-z](\s|$)/i.match(data)
Language["Groff"]
elsif /^\((de|class|rel|code|data|must)\s/.match(data)
Language["PicoLisp"]
end
end
disambiguate "Groff", "Nemerle" do |data|
if /^[.']/.match(data)
Language["Groff"]
elsif /^(module|namespace|using)\s/.match(data)
Language["Nemerle"]
end
end
disambiguate "GAS", "Groff" do |data|
if /^[.'][a-z][a-z](\s|$)/i.match(data)
Language["Groff"]
elsif /((^|\s)move?[. ])|\.(include|globa?l)\s/.match(data)
Language["GAS"]
end
end
end

View File

@@ -1041,6 +1041,7 @@ GAS:
group: Assembly
extensions:
- .s
- .ms
tm_scope: source.asm.x86
ace_mode: assembly_x86
@@ -1209,13 +1210,26 @@ Groff:
extensions:
- .man
- '.1'
- .1in
- .1m
- .1x
- '.2'
- '.3'
- .3in
- .3m
- .3qt
- .3x
- '.4'
- '.5'
- '.6'
- '.7'
- '.8'
- '.9'
- .l
- .ms
- .n
- .rno
- .roff
tm_scope: text.groff
aliases:
- nroff
@@ -1508,11 +1522,12 @@ JSONLD:
tm_scope: source.js
JSONiq:
color: "#40d47e"
type: programming
ace_mode: jsoniq
extensions:
- .jq
tm_scope: source.xquery
tm_scope: source.jq
Jade:
group: HTML
@@ -2475,6 +2490,16 @@ Perl6:
tm_scope: source.perl.6
ace_mode: perl
PicoLisp:
type: programming
extensions:
- .l
interpreters:
- picolisp
- pil
tm_scope: source.lisp
ace_mode: lisp
PigLatin:
type: programming
color: "#fcd7de"
@@ -3554,6 +3579,7 @@ XQuery:
- .xqm
- .xqy
ace_mode: xquery
tm_scope: source.xq
XS:
type: programming

View File

@@ -1,3 +1,3 @@
module Linguist
VERSION = "4.5.5"
VERSION = "4.5.6"
end