From d2905765434f37ae64d0a7bfb5696dbfc4bf996f Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 18:16:51 +0100 Subject: [PATCH 01/17] Add Docker Files as a language --- grammars.yml | 2 ++ lib/linguist/languages.yml | 10 ++++++++-- samples/Shell/filenames/Dockerfile | 30 ------------------------------ 3 files changed, 10 insertions(+), 32 deletions(-) delete mode 100644 samples/Shell/filenames/Dockerfile diff --git a/grammars.yml b/grammars.yml index af3a2e3a..ad9357a0 100644 --- a/grammars.yml +++ b/grammars.yml @@ -66,6 +66,8 @@ https://github.com/aroben/ada.tmbundle/raw/c45eed4d5f98fe3bcbbffbb9e436601ab5bbd https://github.com/aroben/ruby.tmbundle@4636a3023153c3034eb6ffc613899ba9cf33b41f: - source.ruby - text.html.erb +https://github.com/asbjornenge/Docker.tmbundle: +- source.dockerfile https://github.com/atom/language-coffee-script: - source.coffee - source.litcoffee diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index e1d9ee3d..416544d2 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -605,6 +605,14 @@ Diff: aliases: - udiff +Docker File: + type: data + tm_scope: source.dockerfile + extensions: + - .dockerfile + filenames: + - Dockerfile + Dogescript: type: programming color: "#cca760" @@ -2273,8 +2281,6 @@ Shell: - bash - sh - zsh - filenames: - - Dockerfile ShellSession: type: programming diff --git a/samples/Shell/filenames/Dockerfile b/samples/Shell/filenames/Dockerfile deleted file mode 100644 index 46f9b585..00000000 --- a/samples/Shell/filenames/Dockerfile +++ /dev/null @@ -1,30 +0,0 @@ -# This file describes the standard way to build Docker, using docker -docker-version 0.4.2 -from ubuntu:12.04 -maintainer Solomon Hykes -# Build dependencies -run apt-get install -y -q curl -run apt-get install -y -q git -# Install Go -run curl -s https://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz | tar -v -C /usr/local -xz -env PATH /usr/local/go/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin -env GOPATH /go -env CGO_ENABLED 0 -run cd /tmp && echo 'package main' > t.go && go test -a -i -v -# Download dependencies -run PKG=github.com/kr/pty REV=27435c699; git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV -run PKG=github.com/gorilla/context/ REV=708054d61e5; git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV -run PKG=github.com/gorilla/mux/ REV=9b36453141c; git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV -# Run dependencies -run apt-get install -y iptables -# lxc requires updating ubuntu sources -run echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list -run apt-get update -run apt-get install -y lxc -run apt-get install -y aufs-tools -# Upload docker source -add . /go/src/github.com/dotcloud/docker -# Build the binary -run cd /go/src/github.com/dotcloud/docker/docker && go install -ldflags "-X main.GITCOMMIT '??' -d -w" -env PATH /usr/local/go/bin:/go/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin -cmd ["docker"] From 6b90f22cef66bc95153b7c1746447fac225bf472 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 18:37:54 +0100 Subject: [PATCH 02/17] Add Parrot IR --- grammars.yml | 2 ++ lib/linguist/languages.yml | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/grammars.yml b/grammars.yml index ad9357a0..b7b023b8 100644 --- a/grammars.yml +++ b/grammars.yml @@ -11,6 +11,8 @@ http://svn.textmate.org/trunk/Review/Bundles/F%20Sharp.tmbundle: - source.fsharp http://svn.textmate.org/trunk/Review/Bundles/Forth.tmbundle: - source.forth +http://svn.textmate.org/trunk/Review/Bundles/Parrot.tmbundle: +- source.parrot.pir http://svn.textmate.org/trunk/Review/Bundles/Ruby%20Sass.tmbundle: - source.sass http://svn.textmate.org/trunk/Review/Bundles/SecondLife%20LSL.tmbundle: diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 416544d2..62512c08 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1807,6 +1807,15 @@ Parrot Assembly: extensions: - .pasm +Parrot IR: + group: Parrot + type: programming + aliases: + - pir + extensions: + - .pir + tm_scope: source.parrot.pir + Pascal: type: programming color: "#b0ce4e" From a0bbf7df6fb09a641418b32d947095c52c864414 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 18:41:36 +0100 Subject: [PATCH 03/17] Add Ant --- grammars.yml | 2 ++ lib/linguist/languages.yml | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/grammars.yml b/grammars.yml index b7b023b8..264bc752 100644 --- a/grammars.yml +++ b/grammars.yml @@ -221,6 +221,8 @@ https://github.com/swannodette/textmate-clojure: - source.clojure https://github.com/technosophos/Vala-TMBundle: - source.vala +https://github.com/textmate/ant.tmbundle: +- text.xml.ant https://github.com/textmate/antlr.tmbundle: - source.antlr https://github.com/textmate/apache.tmbundle: diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 62512c08..9ec037cd 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -33,6 +33,15 @@ AGS Script: - .ash tm_scope: source.c++ +Ant Build System: + type: data + tm_scope: text.xml.ant + extensions: + - .ant.xml + filenames: + - build.xml + - ant.xml + ANTLR: type: programming color: "#9DC3FF" From 5bc0ce088819ca33882f6121501eadab5afc4a2c Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 18:44:12 +0100 Subject: [PATCH 04/17] Add Bison --- grammars.yml | 2 ++ lib/linguist/languages.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/grammars.yml b/grammars.yml index 264bc752..203c5a58 100644 --- a/grammars.yml +++ b/grammars.yml @@ -233,6 +233,8 @@ https://github.com/textmate/applescript.tmbundle: https://github.com/textmate/asp.tmbundle: - source.asp - text.html.asp +https://github.com/textmate/bison.tmbundle: +- source.bison https://github.com/textmate/c.tmbundle: - source.c - source.c++ diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 9ec037cd..9723ce4b 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -240,6 +240,12 @@ Befunge: extensions: - .befunge +Bison: + type: programming + tm_scope: source.bison + extensions: + - .y + BlitzBasic: type: programming aliases: From 03b250990d48a51cc8c8513d165347ee1f53c90d Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 18:46:16 +0100 Subject: [PATCH 05/17] Add Cap'n Proto --- grammars.yml | 2 ++ lib/linguist/languages.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/grammars.yml b/grammars.yml index 203c5a58..c375c919 100644 --- a/grammars.yml +++ b/grammars.yml @@ -238,6 +238,8 @@ https://github.com/textmate/bison.tmbundle: https://github.com/textmate/c.tmbundle: - source.c - source.c++ +https://github.com/textmate/capnproto.tmbundle: +- source.capnp https://github.com/textmate/cmake.tmbundle: - source.cache.cmake - source.cmake diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 9723ce4b..cd8222c9 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -386,6 +386,12 @@ CSS: extensions: - .css +Cap'n Proto: + type: programming + tm_scope: source.capnp + extensions: + - .capnp + Ceylon: type: programming extensions: From d4e6798ba8d2b1b6ec388f2b295cfc03c60c114d Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 18:48:19 +0100 Subject: [PATCH 06/17] add Graphviz --- grammars.yml | 2 ++ lib/linguist/languages.yml | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/grammars.yml b/grammars.yml index c375c919..a6060a20 100644 --- a/grammars.yml +++ b/grammars.yml @@ -266,6 +266,8 @@ https://github.com/textmate/fortran.tmbundle: - source.fortran.modern https://github.com/textmate/gettext.tmbundle: - source.po +https://github.com/textmate/graphviz.tmbundle: +- source.dot https://github.com/textmate/groovy.tmbundle: - source.groovy https://github.com/textmate/haskell.tmbundle: diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index cd8222c9..f9706e96 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -956,6 +956,13 @@ Graph Modeling Language: extensions: - .gml +Graphviz (DOT): + type: data + tm_scope: source.dot + extensions: + - .dot + - .DOT + Groff: extensions: - .man From af90ac3758479f542fa6a8afbb3c4c68e260dfa1 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 18:54:27 +0100 Subject: [PATCH 07/17] add Maven buildfiles --- grammars.yml | 2 ++ lib/linguist/languages.yml | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/grammars.yml b/grammars.yml index a6060a20..44ac28ce 100644 --- a/grammars.yml +++ b/grammars.yml @@ -316,6 +316,8 @@ https://github.com/textmate/markdown.tmbundle: https://github.com/textmate/matlab.tmbundle: - source.matlab - source.octave +https://github.com/textmate/maven.tmbundle: +- text.xml.pom https://github.com/textmate/nemerle.tmbundle: - source.nemerle https://github.com/textmate/objective-c.tmbundle: diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index f9706e96..cc81d0dd 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1527,6 +1527,14 @@ Matlab: - .matlab - .m +Maven POM: + type: data + tm_scope: text.xml.pom + extensions: + - .pom.xml + filenames: + - pom.xml + Max: type: programming color: "#ce279c" From 49288288740777f4189de2ba176999a74f638a64 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 18:56:34 +0100 Subject: [PATCH 08/17] Add Ninja --- grammars.yml | 2 ++ lib/linguist/languages.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/grammars.yml b/grammars.yml index 44ac28ce..f31a0d4a 100644 --- a/grammars.yml +++ b/grammars.yml @@ -320,6 +320,8 @@ https://github.com/textmate/maven.tmbundle: - text.xml.pom https://github.com/textmate/nemerle.tmbundle: - source.nemerle +https://github.com/textmate/ninja.tmbundle: +- source.ninja https://github.com/textmate/objective-c.tmbundle: - source.objc - source.objc++ diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index cc81d0dd..f77ad4ef 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1635,6 +1635,12 @@ Nimrod: - .nim - .nimrod +Ninja: + type: data + tm_scope: source.ninja + extensions: + - .ninja + Nit: type: programming color: "#0d8921" From a4ae90e2e985024d3a39cc92f87bfb131e5abca5 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 18:58:30 +0100 Subject: [PATCH 09/17] Add Thrift --- grammars.yml | 2 ++ lib/linguist/languages.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/grammars.yml b/grammars.yml index f31a0d4a..19b5fb83 100644 --- a/grammars.yml +++ b/grammars.yml @@ -382,6 +382,8 @@ https://github.com/textmate/textile.tmbundle: https://github.com/textmate/textmate.tmbundle: - source.regexp.oniguruma - source.tm-properties +https://github.com/textmate/thrift.tmbundle: +- source.thrift https://github.com/textmate/toml.tmbundle: - source.toml https://github.com/textmate/verilog.tmbundle: diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index f77ad4ef..5bbffbfb 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -2506,6 +2506,12 @@ Textile: extensions: - .textile +Thrift: + type: programming + tm_scope: source.thrift + extensions: + - .thrift + Turing: type: programming color: "#45f715" From 3fc01d09cef770f0331b30d81511104edf8ad0ed Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 19:00:21 +0100 Subject: [PATCH 10/17] Hah Parrot was already a thing --- lib/linguist/languages.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 5bbffbfb..d8fade7a 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1835,6 +1835,7 @@ Parrot: Parrot Internal Representation: group: Parrot + tm_scope: source.parrot.pir type: programming aliases: - pir @@ -1849,15 +1850,6 @@ Parrot Assembly: extensions: - .pasm -Parrot IR: - group: Parrot - type: programming - aliases: - - pir - extensions: - - .pir - tm_scope: source.parrot.pir - Pascal: type: programming color: "#b0ce4e" From a829f3143ab2d9f39fa001be8a022b1fbac499b3 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 19:04:06 +0100 Subject: [PATCH 11/17] Add DOT sample --- samples/DOT/sample.dot | 74 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 samples/DOT/sample.dot diff --git a/samples/DOT/sample.dot b/samples/DOT/sample.dot new file mode 100644 index 00000000..a55dc093 --- /dev/null +++ b/samples/DOT/sample.dot @@ -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]; +} \ No newline at end of file From 9e28965259a4730e586c1a3bf49b87e28d91d31a Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 19:04:11 +0100 Subject: [PATCH 12/17] Rename Dockerfile --- lib/linguist/languages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index d8fade7a..44734ea4 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -626,7 +626,7 @@ Diff: aliases: - udiff -Docker File: +Dockerfile: type: data tm_scope: source.dockerfile extensions: From 935c8523643ac8b2e6743c5129fb68926537ee17 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 19:05:10 +0100 Subject: [PATCH 13/17] Add Dockerfile sample --- samples/Dockerfile/filenames/Dockerfile | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 samples/Dockerfile/filenames/Dockerfile diff --git a/samples/Dockerfile/filenames/Dockerfile b/samples/Dockerfile/filenames/Dockerfile new file mode 100644 index 00000000..46f9b585 --- /dev/null +++ b/samples/Dockerfile/filenames/Dockerfile @@ -0,0 +1,30 @@ +# This file describes the standard way to build Docker, using docker +docker-version 0.4.2 +from ubuntu:12.04 +maintainer Solomon Hykes +# Build dependencies +run apt-get install -y -q curl +run apt-get install -y -q git +# Install Go +run curl -s https://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz | tar -v -C /usr/local -xz +env PATH /usr/local/go/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin +env GOPATH /go +env CGO_ENABLED 0 +run cd /tmp && echo 'package main' > t.go && go test -a -i -v +# Download dependencies +run PKG=github.com/kr/pty REV=27435c699; git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV +run PKG=github.com/gorilla/context/ REV=708054d61e5; git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV +run PKG=github.com/gorilla/mux/ REV=9b36453141c; git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV +# Run dependencies +run apt-get install -y iptables +# lxc requires updating ubuntu sources +run echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list +run apt-get update +run apt-get install -y lxc +run apt-get install -y aufs-tools +# Upload docker source +add . /go/src/github.com/dotcloud/docker +# Build the binary +run cd /go/src/github.com/dotcloud/docker/docker && go install -ldflags "-X main.GITCOMMIT '??' -d -w" +env PATH /usr/local/go/bin:/go/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin +cmd ["docker"] From f217047ac0297748b58e7ab63b83d8b374321efc Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 19:06:41 +0100 Subject: [PATCH 14/17] Rename --- samples/{DOT => Graphviz (DOT)}/sample.dot | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename samples/{DOT => Graphviz (DOT)}/sample.dot (100%) diff --git a/samples/DOT/sample.dot b/samples/Graphviz (DOT)/sample.dot similarity index 100% rename from samples/DOT/sample.dot rename to samples/Graphviz (DOT)/sample.dot From 6b3ba295581ee190d1dcbbb746070986d449b181 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 19:11:11 +0100 Subject: [PATCH 15/17] Reindent --- lib/linguist/languages.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 44734ea4..2d827482 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -2610,11 +2610,11 @@ Visual Basic: - vbnet Volt: - type: programming - color: "#0098db" - extensions: - - .volt - tm_scope: source.d + type: programming + color: "#0098db" + extensions: + - .volt + tm_scope: source.d XC: type: programming From 5969a8b679e756e9ad0da3c7b3bd35a8d3cc7f07 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 19:18:43 +0100 Subject: [PATCH 16/17] More samples --- samples/Graphviz (DOT)/annoying.DOT | 50 +++++++++++++++++++++++++++++ test/test_pedantic.rb | 2 +- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 samples/Graphviz (DOT)/annoying.DOT diff --git a/samples/Graphviz (DOT)/annoying.DOT b/samples/Graphviz (DOT)/annoying.DOT new file mode 100644 index 00000000..fd20f4a4 --- /dev/null +++ b/samples/Graphviz (DOT)/annoying.DOT @@ -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]; +} \ No newline at end of file diff --git a/test/test_pedantic.rb b/test/test_pedantic.rb index 2586f4ca..264c54f3 100644 --- a/test/test_pedantic.rb +++ b/test/test_pedantic.rb @@ -22,7 +22,7 @@ class TestPedantic < Test::Unit::TestCase file("languages.yml").lines.each do |line| if line =~ /^ extensions:$/ extensions = [] - elsif extensions && line =~ /^ - \.([\w-]+)( *#.*)?$/ + elsif extensions && line =~ /^ - \.([\w\-\.]+)( *#.*)?$/ extensions << $1 else assert_sorted extensions[1..-1] if extensions From f0bd24f8100f491a806c7311f374d714bbca2731 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 14 Nov 2014 19:20:47 +0100 Subject: [PATCH 17/17] DOT was already a thing --- lib/linguist/languages.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 2d827482..5cd7c4a6 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -599,12 +599,6 @@ DM: - byond tm_scope: source.c++ -DOT: - type: data - extensions: - - .dot - - .gv - Darcs Patch: search_term: dpatch aliases: @@ -962,6 +956,7 @@ Graphviz (DOT): extensions: - .dot - .DOT + - .gv Groff: extensions: