Brandon Keepers
754bc4ef6d
Remove more empty samples
2014-11-06 14:56:19 -06:00
Brandon Keepers
df55043500
Bail earlier if the file is empty.
...
This will change behavior for empty files with unique extensions, returning nil instead of the language.
2014-11-06 14:49:24 -06:00
Blake Embrey
42e9131b4f
Add RAML support
2014-11-06 11:47:00 -06:00
Arfon Smith
0946791434
Merge branch 'master' into support-hack
...
Conflicts:
lib/linguist/heuristics.rb
2014-11-04 16:09:00 -06:00
Arfon Smith
9d8ab16a38
Merge branch 'master' into 1623-local
...
Conflicts:
lib/linguist/heuristics.rb
2014-11-02 20:11:49 -06:00
Geoff Nixon
edadca9085
Add comment styles, don't choke on #!/usr/bin/env foo=bar...
2014-11-02 03:07:21 -08:00
Arfon Smith
9e50e188a8
Merge branch 'master' into 1233-local
...
Conflicts:
lib/linguist/language.rb
lib/linguist/languages.yml
lib/linguist/samples.json
2014-11-01 10:04:22 -05:00
Arfon Smith
1a9ee8e187
Merge pull request #1636 from Verteiron/master
...
Add support for Papyrus scripts
2014-10-30 06:24:56 -05:00
Arfon Smith
d4d6ef314d
Merge branch 'master' into 1036-local
2014-10-28 19:14:43 -05:00
Arfon Smith
a696e3a7a2
Merge pull request #1632 from ngn/master
...
Recognise *.dyalog as APL sources
2014-10-27 17:38:34 +00:00
ngn
8336dc33e4
Add sample .dyalog file for file type APL
...
Taken from
https://github.com/Gianfrancoalongi/APLUnit/blob/master/UT.dyalog
2014-10-27 10:35:23 +00:00
Verteiron
5f22bf225c
Added extra Papyrus sample files.
2014-10-26 15:30:40 -05:00
Verteiron
8eee8ad9cf
Add sample Papyrus script
...
This is the metaquest script from one of my own mods.
2014-10-26 14:58:17 -05:00
William Di Luigi
3504a36c3e
Add LOLCODE support
2014-10-26 00:23:08 +02:00
Arfon Smith
cf9998f3e4
Merge branch 'master' into 1036-local
2014-10-23 12:16:51 +01:00
Arfon Smith
89320b1ca4
Merge branch 'master' into 1036-local
...
Conflicts:
lib/linguist/heuristics.rb
lib/linguist/samples.json
2014-10-23 12:05:18 +01:00
Paul Chaignon
b6a9993c97
Add .sc as a SuperCollider file extension
2014-10-22 10:16:30 -04:00
Josh Watzman
9c044c5bd0
Add detection for Hack files with ".php" file extension
...
Based on top of PR#1447. Adds a simple heuristic check for Hack files vs PHP files (`<?hh` vs other `<?`).
Tested by verifying that the Hack example site was detected as 100% Hack and that Laravel was detected as 100% PHP. (Without the heuristic, Laravel gets detected as about 50% Hack, just by randomness in the classifier since PHP and Hack are very hard to distinguish unless you actually parse the file and look for specific language features.)
2014-10-21 16:17:58 -07:00
Paul Chaignon
6b0783936f
Add .command as a Shell file extension
2014-10-21 19:07:03 -04:00
Josh Watzman
b2cb74cabf
Add detection for Hack files with ".hh" file extension
...
Hack is Facebook's dialect of PHP: http://hacklang.org/ . This adds support for detecting it via the ".hh" file extension; although that extension techincally conflicts with C++ headers, the files look different enough that the existing classifier based on sample code has no trouble distinguising them.
This diff deliberately does not deal with detecting ".php" as another valid extension for Hack code. That's much trickier since the code looks basically identical to PHP to the classifier, and needs a different approach.
2014-10-21 15:35:57 -07:00
Arfon Smith
31728a3a78
Merge pull request #1613 from hearsilent/patch-1
...
Add .a51 to Assembly
2014-10-20 10:21:24 -05:00
HearSilent
35aa57657b
Add .a51 sample
2014-10-20 05:16:51 +08:00
Yuki Iwanaga
423c8865bd
Add a filename rule for _vimrc
2014-10-20 00:39:26 +09:00
Arfon Smith
170c1d4ee8
Merge pull request #1584 from laomaiweng/linguist-detect-tcl-shebang
...
Shebang detection for Tcl/Tk scripts
2014-10-17 14:32:13 -05:00
Paul Chaignon
0fcc26f778
Add .fcgi as an extension for script languages
2014-10-15 10:37:58 -04:00
Arfon Smith
4f14db10ea
Merge pull request #933 from pchaigno/pro
...
Support of the .pro file extension for Prolog.
2014-10-13 14:57:19 -05:00
quentin
48f2949d69
Move the extension-less sample scripts in a filenames/ subdir
2014-10-13 10:09:07 +02:00
quentin
baa3cba0fc
Add sample Tcl/Tk scripts to test Tcl/Tk shebang detection
...
Scripts taken from:
* starfield: http://wiki.tcl.tk/14140
* owh: http://wiki.tcl.tk/906
2014-10-13 03:05:56 +02:00
Joshua Moerman
bec0052065
Adds samples for the clean programming language
2014-10-05 12:55:00 +02:00
Tomas Morstein
f4f5ccb3f5
add MMS/MMK samples
2014-10-04 20:43:39 +02:00
Tomas Morstein
d7757033ab
DCL examples
2014-10-04 20:33:28 +02:00
Lucas Werkmeister
ded4672ccc
Update Ceylon sample file
...
See ceylon/ceylon-spec#585 for the new annotation syntax and ceylon/ceylon-spec#574 for the new string interpolation syntax.
2014-10-02 12:10:11 +02:00
Lars Brinkhoff
7a2be16d77
Add .frt samples for Forth.
2014-09-30 07:03:58 +02:00
Paul Chaignon
8012876d5e
Support for Graph Modeling Language
2014-09-26 10:43:35 -04:00
Paul Chaignon
7b44baa417
Merge branch 'master' into newlisp
2014-09-25 10:47:16 -04:00
Paul Chaignon
f3d654a965
Merge branch 'master' into bitbake
2014-09-25 10:38:47 -04:00
Paul Chaignon
2e6aae0256
Merge branch 'master' into saltstack-states
2014-09-25 10:26:57 -04:00
Paul Chaignon
f59cf24a82
Merge branch 'master' into pro
2014-09-25 10:23:21 -04:00
Arfon Smith
b5015b6cc7
Merge pull request #1554 from github/1267-local
...
1267 local
2014-09-24 16:50:55 -05:00
Arfon Smith
1d2a6c38c7
Merge branch 'master' into 1267-local
...
Conflicts:
lib/linguist/samples.json
2014-09-24 16:43:42 -05:00
Arfon Smith
cc87ceb0d5
Merge branch 'master' into 1372-local
...
Conflicts:
lib/linguist/samples.json
2014-09-24 16:38:07 -05:00
Vivek Galatage
d8b4d4639c
Sample JSBuild file showing the usage javascript as scripting language.
2014-09-22 00:15:35 +05:30
Lars Brinkhoff
92212d2652
Add Groff sample.
2014-09-19 13:51:19 +02:00
Romain Lespinasse
5a59ecbc2a
Add support for Golo language
2014-09-17 13:59:02 +02:00
Arfon Smith
302af86363
Merge branch 'master' into 1233-local
...
Conflicts:
lib/linguist/language.rb
lib/linguist/samples.json
2014-09-16 16:36:10 -05:00
Arfon Smith
55d997f43a
Merge branch 'master' into 1530-local
...
Conflicts:
lib/linguist/samples.json
2014-09-15 13:48:22 -05:00
Max Horn
b67c2bc2b2
Add support for G-code language
...
This is a special language controlling 3D printers (by RepRap, Makerbot,
Ultimaker etc.). It is not a general purpose programming language, but
still contains commands for e.g. looping. On the other hand, most of the
time it will be generated by another program, not hand-written. Hence I
classified it as "data".
Specification:
* http://reprap.org/wiki/G-code
Some repositories with examples:
* https://github.com/reprappro/Mendel
* https://github.com/BLLIP/bllip-parser
* https://github.com/MakerGear/M2
2014-09-15 14:59:40 +02:00
Max Horn
393c9b759e
Add support for the GDScript language
...
References:
* https://github.com/okamstudio/godot/wiki/gdscript
* http://www.godotengine.org/
Some projects using it:
* https://github.com/okamstudio/godot
* https://github.com/Qwertie-/Godot-games
My motivation for adding it: To disambiguate these .gd
files from GAP .gd files.
2014-09-15 14:31:58 +02:00
Arfon Smith
9ba0a7db64
Merge pull request #1506 from pchaigno/cgi-scripts
...
Add .cgi as an extension for Python and Bash
2014-09-05 13:21:33 -05:00
Arfon Smith
34218c5f58
Scripty Prolog
2014-09-05 13:00:19 -05:00