Dimitri Kennedy
1d69228872
change component name
2014-11-20 16:49:48 -05:00
Dimitri Kennedy
f5953a09da
add example cjsx file
2014-11-20 16:48:22 -05:00
Max Horn
6072a63f99
Add GAP .tst extension plus two sample files
2014-11-20 12:47:15 -07:00
Manuel Rego Casasnovas
30c6b6e5a1
Add XHTML example file
2014-11-20 00:30:21 +01:00
Brandon Keepers
a6f168d1ac
Rename file to avoid case-insensitive collision
2014-11-18 23:22:10 -05:00
Brandon Keepers
719f6e876b
Merge pull request #1732 from github/filename-matches-multiple-langages
...
Require samples if filename matches multiple languages
2014-11-18 16:31:19 -05:00
Brandon Keepers
63f9d0bdeb
Add Gemfile.lock sample
...
Gemfile.lock should not actually get classified as Ruby, but we can fix that in another PR.
2014-11-18 15:36:42 -05:00
Brandon Keepers
d7a032afcd
Symlink ant.xml to build.xml
...
We require samples for explicitly defined filenames that matches multiple languages. This is generally a good thing, but in this case they will be identical.
2014-11-18 15:02:59 -05:00
Lars Brinkhoff
4cefaf2808
Add FORTRAN and Forth samples.
2014-11-18 20:12:39 +01:00
Brandon Keepers
757801e32f
Merge remote-tracking branch 'origin/master' into filename-matches-multiple-langages
...
* origin/master:
Allow mime-types 2.x to be used with Linguist
Upgrade to rugged 0.22.0b1
Mention that languages need to be quite popular
fix vendor/cache
Gemfile.lock is nolonger considered generated
Tests for BlobHelper#empty?
remove reference to empty.js
Remove more empty samples
Bail earlier if the file is empty.
Moving comments
Use heuristics earlier to inform the rest of the classification process
Removing inconsistency of `find_by_heuristics` (was sometimes returning nil and sometimes returning and empty array)
Removing unused array of candidate languages.
Reworking most heuristics to only return one match
2014-11-18 14:09:15 -05:00
Arfon Smith
0443c4db2d
Merge pull request #1674 from github/rework-heuristics
...
Rework heuristics
2014-11-18 10:43:01 -06:00
Arfon Smith
c5344da2ba
Removing extensions when they should be filenames
2014-11-17 16:44:39 -06:00
Arfon Smith
c1b704075e
Adding sample pom.xml files
2014-11-17 16:25:03 -06:00
Vicent Marti
5969a8b679
More samples
2014-11-14 19:18:43 +01:00
Vicent Marti
f217047ac0
Rename
2014-11-14 19:06:41 +01:00
Vicent Marti
935c852364
Add Dockerfile sample
2014-11-14 19:05:42 +01:00
Vicent Marti
a829f3143a
Add DOT sample
2014-11-14 19:04:06 +01:00
Vicent Marti
d290576543
Add Docker Files as a language
2014-11-14 18:16:51 +01:00
Paul Chaignon
9c64f72f35
Add .mm as an XML extension with heuristic rule
2014-11-12 19:38:54 -05:00
Brandon Keepers
92ace440b9
Merge pull request #1540 from rlespinasse/golo-support
...
Add support for Golo language
2014-11-08 14:00:36 -05:00
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