mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merge pull request #1714 from github/vmg/new-languages
Some new TM powered languages
This commit is contained in:
18
grammars.yml
18
grammars.yml
@@ -11,6 +11,8 @@ http://svn.textmate.org/trunk/Review/Bundles/F%20Sharp.tmbundle:
|
|||||||
- source.fsharp
|
- source.fsharp
|
||||||
http://svn.textmate.org/trunk/Review/Bundles/Forth.tmbundle:
|
http://svn.textmate.org/trunk/Review/Bundles/Forth.tmbundle:
|
||||||
- source.forth
|
- source.forth
|
||||||
|
http://svn.textmate.org/trunk/Review/Bundles/Parrot.tmbundle:
|
||||||
|
- source.parrot.pir
|
||||||
http://svn.textmate.org/trunk/Review/Bundles/Ruby%20Sass.tmbundle:
|
http://svn.textmate.org/trunk/Review/Bundles/Ruby%20Sass.tmbundle:
|
||||||
- source.sass
|
- source.sass
|
||||||
http://svn.textmate.org/trunk/Review/Bundles/SecondLife%20LSL.tmbundle:
|
http://svn.textmate.org/trunk/Review/Bundles/SecondLife%20LSL.tmbundle:
|
||||||
@@ -66,6 +68,8 @@ https://github.com/aroben/ada.tmbundle/raw/c45eed4d5f98fe3bcbbffbb9e436601ab5bbd
|
|||||||
https://github.com/aroben/ruby.tmbundle@4636a3023153c3034eb6ffc613899ba9cf33b41f:
|
https://github.com/aroben/ruby.tmbundle@4636a3023153c3034eb6ffc613899ba9cf33b41f:
|
||||||
- source.ruby
|
- source.ruby
|
||||||
- text.html.erb
|
- text.html.erb
|
||||||
|
https://github.com/asbjornenge/Docker.tmbundle:
|
||||||
|
- source.dockerfile
|
||||||
https://github.com/atom/language-coffee-script:
|
https://github.com/atom/language-coffee-script:
|
||||||
- source.coffee
|
- source.coffee
|
||||||
- source.litcoffee
|
- source.litcoffee
|
||||||
@@ -217,6 +221,8 @@ https://github.com/swannodette/textmate-clojure:
|
|||||||
- source.clojure
|
- source.clojure
|
||||||
https://github.com/technosophos/Vala-TMBundle:
|
https://github.com/technosophos/Vala-TMBundle:
|
||||||
- source.vala
|
- source.vala
|
||||||
|
https://github.com/textmate/ant.tmbundle:
|
||||||
|
- text.xml.ant
|
||||||
https://github.com/textmate/antlr.tmbundle:
|
https://github.com/textmate/antlr.tmbundle:
|
||||||
- source.antlr
|
- source.antlr
|
||||||
https://github.com/textmate/apache.tmbundle:
|
https://github.com/textmate/apache.tmbundle:
|
||||||
@@ -227,9 +233,13 @@ https://github.com/textmate/applescript.tmbundle:
|
|||||||
https://github.com/textmate/asp.tmbundle:
|
https://github.com/textmate/asp.tmbundle:
|
||||||
- source.asp
|
- source.asp
|
||||||
- text.html.asp
|
- text.html.asp
|
||||||
|
https://github.com/textmate/bison.tmbundle:
|
||||||
|
- source.bison
|
||||||
https://github.com/textmate/c.tmbundle:
|
https://github.com/textmate/c.tmbundle:
|
||||||
- source.c
|
- source.c
|
||||||
- source.c++
|
- source.c++
|
||||||
|
https://github.com/textmate/capnproto.tmbundle:
|
||||||
|
- source.capnp
|
||||||
https://github.com/textmate/cmake.tmbundle:
|
https://github.com/textmate/cmake.tmbundle:
|
||||||
- source.cache.cmake
|
- source.cache.cmake
|
||||||
- source.cmake
|
- source.cmake
|
||||||
@@ -256,6 +266,8 @@ https://github.com/textmate/fortran.tmbundle:
|
|||||||
- source.fortran.modern
|
- source.fortran.modern
|
||||||
https://github.com/textmate/gettext.tmbundle:
|
https://github.com/textmate/gettext.tmbundle:
|
||||||
- source.po
|
- source.po
|
||||||
|
https://github.com/textmate/graphviz.tmbundle:
|
||||||
|
- source.dot
|
||||||
https://github.com/textmate/groovy.tmbundle:
|
https://github.com/textmate/groovy.tmbundle:
|
||||||
- source.groovy
|
- source.groovy
|
||||||
https://github.com/textmate/haskell.tmbundle:
|
https://github.com/textmate/haskell.tmbundle:
|
||||||
@@ -304,8 +316,12 @@ https://github.com/textmate/markdown.tmbundle:
|
|||||||
https://github.com/textmate/matlab.tmbundle:
|
https://github.com/textmate/matlab.tmbundle:
|
||||||
- source.matlab
|
- source.matlab
|
||||||
- source.octave
|
- source.octave
|
||||||
|
https://github.com/textmate/maven.tmbundle:
|
||||||
|
- text.xml.pom
|
||||||
https://github.com/textmate/nemerle.tmbundle:
|
https://github.com/textmate/nemerle.tmbundle:
|
||||||
- source.nemerle
|
- source.nemerle
|
||||||
|
https://github.com/textmate/ninja.tmbundle:
|
||||||
|
- source.ninja
|
||||||
https://github.com/textmate/objective-c.tmbundle:
|
https://github.com/textmate/objective-c.tmbundle:
|
||||||
- source.objc
|
- source.objc
|
||||||
- source.objc++
|
- source.objc++
|
||||||
@@ -366,6 +382,8 @@ https://github.com/textmate/textile.tmbundle:
|
|||||||
https://github.com/textmate/textmate.tmbundle:
|
https://github.com/textmate/textmate.tmbundle:
|
||||||
- source.regexp.oniguruma
|
- source.regexp.oniguruma
|
||||||
- source.tm-properties
|
- source.tm-properties
|
||||||
|
https://github.com/textmate/thrift.tmbundle:
|
||||||
|
- source.thrift
|
||||||
https://github.com/textmate/toml.tmbundle:
|
https://github.com/textmate/toml.tmbundle:
|
||||||
- source.toml
|
- source.toml
|
||||||
https://github.com/textmate/verilog.tmbundle:
|
https://github.com/textmate/verilog.tmbundle:
|
||||||
|
|||||||
@@ -33,6 +33,15 @@ AGS Script:
|
|||||||
- .ash
|
- .ash
|
||||||
tm_scope: source.c++
|
tm_scope: source.c++
|
||||||
|
|
||||||
|
Ant Build System:
|
||||||
|
type: data
|
||||||
|
tm_scope: text.xml.ant
|
||||||
|
extensions:
|
||||||
|
- .ant.xml
|
||||||
|
filenames:
|
||||||
|
- build.xml
|
||||||
|
- ant.xml
|
||||||
|
|
||||||
ANTLR:
|
ANTLR:
|
||||||
type: programming
|
type: programming
|
||||||
color: "#9DC3FF"
|
color: "#9DC3FF"
|
||||||
@@ -231,6 +240,12 @@ Befunge:
|
|||||||
extensions:
|
extensions:
|
||||||
- .befunge
|
- .befunge
|
||||||
|
|
||||||
|
Bison:
|
||||||
|
type: programming
|
||||||
|
tm_scope: source.bison
|
||||||
|
extensions:
|
||||||
|
- .y
|
||||||
|
|
||||||
BlitzBasic:
|
BlitzBasic:
|
||||||
type: programming
|
type: programming
|
||||||
aliases:
|
aliases:
|
||||||
@@ -371,6 +386,12 @@ CSS:
|
|||||||
extensions:
|
extensions:
|
||||||
- .css
|
- .css
|
||||||
|
|
||||||
|
Cap'n Proto:
|
||||||
|
type: programming
|
||||||
|
tm_scope: source.capnp
|
||||||
|
extensions:
|
||||||
|
- .capnp
|
||||||
|
|
||||||
Ceylon:
|
Ceylon:
|
||||||
type: programming
|
type: programming
|
||||||
extensions:
|
extensions:
|
||||||
@@ -578,12 +599,6 @@ DM:
|
|||||||
- byond
|
- byond
|
||||||
tm_scope: source.c++
|
tm_scope: source.c++
|
||||||
|
|
||||||
DOT:
|
|
||||||
type: data
|
|
||||||
extensions:
|
|
||||||
- .dot
|
|
||||||
- .gv
|
|
||||||
|
|
||||||
Darcs Patch:
|
Darcs Patch:
|
||||||
search_term: dpatch
|
search_term: dpatch
|
||||||
aliases:
|
aliases:
|
||||||
@@ -605,6 +620,14 @@ Diff:
|
|||||||
aliases:
|
aliases:
|
||||||
- udiff
|
- udiff
|
||||||
|
|
||||||
|
Dockerfile:
|
||||||
|
type: data
|
||||||
|
tm_scope: source.dockerfile
|
||||||
|
extensions:
|
||||||
|
- .dockerfile
|
||||||
|
filenames:
|
||||||
|
- Dockerfile
|
||||||
|
|
||||||
Dogescript:
|
Dogescript:
|
||||||
type: programming
|
type: programming
|
||||||
color: "#cca760"
|
color: "#cca760"
|
||||||
@@ -927,6 +950,14 @@ Graph Modeling Language:
|
|||||||
extensions:
|
extensions:
|
||||||
- .gml
|
- .gml
|
||||||
|
|
||||||
|
Graphviz (DOT):
|
||||||
|
type: data
|
||||||
|
tm_scope: source.dot
|
||||||
|
extensions:
|
||||||
|
- .dot
|
||||||
|
- .DOT
|
||||||
|
- .gv
|
||||||
|
|
||||||
Groff:
|
Groff:
|
||||||
extensions:
|
extensions:
|
||||||
- .man
|
- .man
|
||||||
@@ -1491,6 +1522,14 @@ Matlab:
|
|||||||
- .matlab
|
- .matlab
|
||||||
- .m
|
- .m
|
||||||
|
|
||||||
|
Maven POM:
|
||||||
|
type: data
|
||||||
|
tm_scope: text.xml.pom
|
||||||
|
extensions:
|
||||||
|
- .pom.xml
|
||||||
|
filenames:
|
||||||
|
- pom.xml
|
||||||
|
|
||||||
Max:
|
Max:
|
||||||
type: programming
|
type: programming
|
||||||
color: "#ce279c"
|
color: "#ce279c"
|
||||||
@@ -1591,6 +1630,12 @@ Nimrod:
|
|||||||
- .nim
|
- .nim
|
||||||
- .nimrod
|
- .nimrod
|
||||||
|
|
||||||
|
Ninja:
|
||||||
|
type: data
|
||||||
|
tm_scope: source.ninja
|
||||||
|
extensions:
|
||||||
|
- .ninja
|
||||||
|
|
||||||
Nit:
|
Nit:
|
||||||
type: programming
|
type: programming
|
||||||
color: "#0d8921"
|
color: "#0d8921"
|
||||||
@@ -1785,6 +1830,7 @@ Parrot:
|
|||||||
|
|
||||||
Parrot Internal Representation:
|
Parrot Internal Representation:
|
||||||
group: Parrot
|
group: Parrot
|
||||||
|
tm_scope: source.parrot.pir
|
||||||
type: programming
|
type: programming
|
||||||
aliases:
|
aliases:
|
||||||
- pir
|
- pir
|
||||||
@@ -2273,8 +2319,6 @@ Shell:
|
|||||||
- bash
|
- bash
|
||||||
- sh
|
- sh
|
||||||
- zsh
|
- zsh
|
||||||
filenames:
|
|
||||||
- Dockerfile
|
|
||||||
|
|
||||||
ShellSession:
|
ShellSession:
|
||||||
type: programming
|
type: programming
|
||||||
@@ -2449,6 +2493,12 @@ Textile:
|
|||||||
extensions:
|
extensions:
|
||||||
- .textile
|
- .textile
|
||||||
|
|
||||||
|
Thrift:
|
||||||
|
type: programming
|
||||||
|
tm_scope: source.thrift
|
||||||
|
extensions:
|
||||||
|
- .thrift
|
||||||
|
|
||||||
Turing:
|
Turing:
|
||||||
type: programming
|
type: programming
|
||||||
color: "#45f715"
|
color: "#45f715"
|
||||||
|
|||||||
50
samples/Graphviz (DOT)/annoying.DOT
Normal file
50
samples/Graphviz (DOT)/annoying.DOT
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
Huffman Tree DOT graph.
|
||||||
|
|
||||||
|
DOT Reference : http://www.graphviz.org/doc/info/lang.html
|
||||||
|
http://en.wikipedia.org/wiki/DOT_language
|
||||||
|
Timestamp : 1415989074
|
||||||
|
Phrase : 'OH GOD WHY IS LINGUIST SO ANAL ABOUT THIS STUFF'
|
||||||
|
|
||||||
|
Generated on http://huffman.ooz.ie/
|
||||||
|
*/
|
||||||
|
|
||||||
|
digraph G {
|
||||||
|
edge [label=0];
|
||||||
|
graph [ranksep=0];
|
||||||
|
T [shape=record, label="{{T|4}|000}"];
|
||||||
|
S [shape=record, label="{{S|5}|001}"];
|
||||||
|
SPACE [shape=record, label="{{SPACE|9}|01}"];
|
||||||
|
A [shape=record, label="{{A|3}|1000}"];
|
||||||
|
H [shape=record, label="{{H|3}|1001}"];
|
||||||
|
U [shape=record, label="{{U|3}|1010}"];
|
||||||
|
L [shape=record, label="{{L|2}|10110}"];
|
||||||
|
N [shape=record, label="{{N|2}|10111}"];
|
||||||
|
I [shape=record, label="{{I|4}|1100}"];
|
||||||
|
O [shape=record, label="{{O|4}|1101}"];
|
||||||
|
G [shape=record, label="{{G|2}|11100}"];
|
||||||
|
F [shape=record, label="{{F|2}|11101}"];
|
||||||
|
GF [label=4];
|
||||||
|
W [shape=record, label="{{W|1}|111100}"];
|
||||||
|
Y [shape=record, label="{{Y|1}|111101}"];
|
||||||
|
B [shape=record, label="{{B|1}|111110}"];
|
||||||
|
D [shape=record, label="{{D|1}|111111}"];
|
||||||
|
BD [label=2];
|
||||||
|
WYBD [label=4];
|
||||||
|
GFWYBD [label=8];
|
||||||
|
47 -> 18 -> 9 -> T;
|
||||||
|
29 -> 13 -> 6 -> A;
|
||||||
|
7 -> U;
|
||||||
|
4 -> L;
|
||||||
|
16 -> 8 -> I;
|
||||||
|
GFWYBD -> GF -> G;
|
||||||
|
WYBD -> 2 -> W;
|
||||||
|
BD -> B;9 -> S [label=1];
|
||||||
|
18 -> SPACE [label=1];
|
||||||
|
6 -> H [label=1];
|
||||||
|
13 -> 7 -> 4 -> N [label=1];
|
||||||
|
8 -> O [label=1];
|
||||||
|
GF -> F [label=1];
|
||||||
|
2 -> Y [label=1];
|
||||||
|
47 -> 29 -> 16 -> GFWYBD -> WYBD -> BD -> D [label=1];
|
||||||
|
}
|
||||||
74
samples/Graphviz (DOT)/sample.dot
Normal file
74
samples/Graphviz (DOT)/sample.dot
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
/*
|
||||||
|
Huffman Tree DOT graph.
|
||||||
|
|
||||||
|
DOT Reference : http://www.graphviz.org/doc/info/lang.html
|
||||||
|
http://en.wikipedia.org/wiki/DOT_language
|
||||||
|
Timestamp : 1415988139
|
||||||
|
Phrase : 'SERIAL KILLER AND SEX OFFENDER ANGUS SINCLAIR IS JAILED FOR A MINIMUM OF 37 YEARS FOR THE 1977 WORLDS END MURDERS OF HELEN SCOTT AND CHRISTINE EADIE.'
|
||||||
|
|
||||||
|
Generated on http://huffman.ooz.ie/
|
||||||
|
*/
|
||||||
|
|
||||||
|
digraph G {
|
||||||
|
edge [label=0];
|
||||||
|
graph [ranksep=0];
|
||||||
|
node [shape=record];
|
||||||
|
U [label="{{U|3}|00000}"];
|
||||||
|
G [label="{{G|1}|0000100}"];
|
||||||
|
K [label="{{K|1}|0000101}"];
|
||||||
|
_3 [label="{{3|1}|0000110}"];
|
||||||
|
_9 [label="{{9|1}|0000111}"];
|
||||||
|
_39 [label=2];
|
||||||
|
L [label="{{L|7}|0001}"];
|
||||||
|
O [label="{{O|7}|0010}"];
|
||||||
|
Y [label="{{Y|1}|0011000}"];
|
||||||
|
X [label="{{X|1}|0011001}"];
|
||||||
|
YX [label=2];
|
||||||
|
J [label="{{J|1}|0011010}"];
|
||||||
|
W [label="{{W|1}|0011011}"];
|
||||||
|
JW [label=2];
|
||||||
|
YXJW [label=4];
|
||||||
|
M [label="{{M|4}|00111}"];
|
||||||
|
E [label="{{E|15}|010}"];
|
||||||
|
D [label="{{D|8}|0110}"];
|
||||||
|
T [label="{{T|4}|01110}"];
|
||||||
|
DOT [label="{{DOT|1}|0111100}"];
|
||||||
|
_1 [label="{{1|1}|0111101}"];
|
||||||
|
DOT1 [label=2];
|
||||||
|
_7 [label="{{7|3}|011111}"];
|
||||||
|
A [label="{{A|9}|1000}"];
|
||||||
|
N [label="{{N|9}|1001}"];
|
||||||
|
S [label="{{S|10}|1010}"];
|
||||||
|
I [label="{{I|11}|1011}"];
|
||||||
|
R [label="{{R|11}|1100}"];
|
||||||
|
C [label="{{C|3}|110100}"];
|
||||||
|
H [label="{{H|3}|110101}"];
|
||||||
|
F [label="{{F|6}|11011}"];
|
||||||
|
SPACE [label="{{SPACE|26}|111}"];
|
||||||
|
149 -> 61 -> 29 -> 14 -> 7 -> U;
|
||||||
|
4 -> 2 -> G;
|
||||||
|
_39 -> _3;
|
||||||
|
15 -> O;
|
||||||
|
8 -> YXJW -> YX -> Y;
|
||||||
|
JW -> J;
|
||||||
|
32 -> E;
|
||||||
|
17 -> D;
|
||||||
|
9 -> T;
|
||||||
|
5 -> DOT1 -> DOT;
|
||||||
|
88 -> 39 -> 18 -> A;
|
||||||
|
21 -> S;
|
||||||
|
49 -> 23 -> R;
|
||||||
|
12 -> 6 -> C;2 -> K [label=1];
|
||||||
|
7 -> 4 -> _39 -> _9 [label=1];
|
||||||
|
14 -> L [label=1];
|
||||||
|
YX -> X [label=1];
|
||||||
|
YXJW -> JW -> W [label=1];
|
||||||
|
29 -> 15 -> 8 -> M [label=1];
|
||||||
|
DOT1 -> _1 [label=1];
|
||||||
|
61 -> 32 -> 17 -> 9 -> 5 -> _7 [label=1];
|
||||||
|
18 -> N [label=1];
|
||||||
|
39 -> 21 -> I [label=1];
|
||||||
|
6 -> H [label=1];
|
||||||
|
23 -> 12 -> F [label=1];
|
||||||
|
149 -> 88 -> 49 -> SPACE [label=1];
|
||||||
|
}
|
||||||
@@ -22,7 +22,7 @@ class TestPedantic < Test::Unit::TestCase
|
|||||||
file("languages.yml").lines.each do |line|
|
file("languages.yml").lines.each do |line|
|
||||||
if line =~ /^ extensions:$/
|
if line =~ /^ extensions:$/
|
||||||
extensions = []
|
extensions = []
|
||||||
elsif extensions && line =~ /^ - \.([\w-]+)( *#.*)?$/
|
elsif extensions && line =~ /^ - \.([\w\-\.]+)( *#.*)?$/
|
||||||
extensions << $1
|
extensions << $1
|
||||||
else
|
else
|
||||||
assert_sorted extensions[1..-1] if extensions
|
assert_sorted extensions[1..-1] if extensions
|
||||||
|
|||||||
Reference in New Issue
Block a user