Aman Gupta
61a59c8e84
avoid load_blob and shebang check on files with extensions
...
previously, any file with an unrecognized file extension was loaded to
check for a shebang. now, this only occurs if the file has a generic
name with no file extension (like ./script)
it is possible this will no longer match certain scripts with esoteric
extensions (if we find these we can add them to the shebang_extname?
method). however, most common script extensions (.sh, .rb, .pl, etc)
will continue to work since the file extension takes precedence over the
shebang line.
2011-11-23 00:54:40 -08:00
Joshua Peek
e4fe1d17e7
Add tests for Perl and Turning detection
2011-11-21 10:42:39 -06:00
Fredrik Leijon
1182d9d328
Detect Arduino 1.0
...
Arudino fixture for tests
2011-11-17 18:28:18 +01:00
Humza
c73689ee0c
Add missing alias tests
2011-11-06 14:18:30 -05:00
Joshua Peek
e562369110
Skip colorizing minified js
2011-10-10 11:29:58 -05:00
Joshua Peek
8c135a9eff
Serve actual content-type, not simplified
2011-10-06 18:04:29 -04:00
Joshua Peek
6e03f954bc
Large blobs should be binary
2011-09-28 10:14:46 -05:00
Joshua Peek
caa39a2bcf
Use Charlock all the time for binary detection
2011-09-28 09:57:33 -05:00
Joshua Peek
8a7bd7d073
Correct ML test assertion
2011-09-27 10:20:03 -05:00
Joshua Peek
0175681a4a
Fix bad fixture
2011-09-27 10:16:41 -05:00
Michael Maclean
29c413366e
Add test for WAF to test_vendored
2011-09-21 17:07:47 +02:00
Joshua Peek
5a584c095b
Fix Haml and Sass grouping and highlighting
2011-09-16 13:54:10 -05:00
Joshua Peek
7ed26bfcf3
Use charlock to detect binary blobs
2011-09-06 19:58:29 -05:00
Joshua Peek
1863b53e5c
Merge branch 'master' of github.com:github/linguist
2011-09-06 15:39:35 -05:00
Joshua Peek
f9df8685b4
Add more test fixture files
2011-09-06 15:39:22 -05:00
Anthony Zhang
09231805ee
Added test fixture for AutoHotkey language.
2011-09-01 16:30:06 -04:00
Anthony
37560f4f60
Add test for the AutoHotkey language.
2011-09-01 16:38:17 -03:00
Joshua Peek
562d110050
Fill in some missing fixtures
2011-08-30 17:11:56 -05:00
Joshua Peek
350465d84d
Fix groovy regexp warning
2011-08-30 14:29:18 -05:00
Joshua Peek
a733ba819e
Merge pull request #68 from github/pygments.rb
...
Replace Lexer with Pygments::Lexer
2011-08-30 11:57:31 -07:00
Jeff Beck
5c93120502
Fix for Ruby 1.8.7
...
Added a test to catch the case better
2011-08-29 12:21:46 -05:00
Jeff Beck
3dd06de711
Adding support to detect the difference between a Grails gsp and a Gosu gsp.
2011-08-29 11:31:39 -05:00
Joshua Peek
0864b9847f
Replace Lexer with Pygments::Lexer
2011-08-23 12:41:06 -05:00
Joshua Peek
bb11317546
Switch to Pygments.rb
2011-08-22 10:55:39 -05:00
Joshua Peek
7280dec280
Ensure pbc is treated as binary
2011-08-10 22:37:41 -07:00
Gus Prevas
aaa14cfca6
add detection for Gosu
2011-08-04 20:50:29 -04:00
Paul Betts
0f1c9c48fa
Suppress .NET XML Intellisense generated files
2011-08-03 12:09:36 -07:00
Joshua Peek
adb436706d
Require group to be set
2011-08-01 10:25:15 -05:00
Joshua Peek
d82b08f560
Add parent Parrot language
2011-08-01 10:25:03 -05:00
Joshua Peek
ac89ff7f01
Require primary extension to be set
2011-08-01 10:24:21 -05:00
Jonathan "Duke" Leto
03b948a182
Remove parrot bytecode as a separate language, as well as deprecated/redundant keys in languages.yml and put PIR+PASM in the Parrot group
2011-07-28 16:41:41 -07:00
Jonathan "Duke" Leto
a4eb4738d7
Detect Parrot assembly and bytecode individually, and add some tests
2011-07-28 11:24:30 -07:00
Justin Marsh (:flaviusb)
836464542c
Added detection for the Ioke language.
2011-07-29 01:28:48 +12:00
Joris den Ouden
d0824ee3b2
Detect Visual Studio project files, solution files and resource files as generated
2011-07-26 20:00:35 +02:00
Joshua Peek
cadb3544eb
Sort filenames
2011-07-25 11:57:44 -05:00
Joshua Peek
7d40fbdfae
Sort extensions
2011-07-25 11:56:39 -05:00
Joshua Peek
6aedcfd0da
Allow explicit primary extensions
2011-07-25 11:35:05 -05:00
Joshua Peek
81cc036fc1
Ensure languages are sorted
2011-07-25 11:22:18 -05:00
Lindsey Kuper
f2debbc687
First stab at adding support for Rust.
2011-07-15 08:55:15 -07:00
Alex Zimin
67a2c47783
fix broken indent
2011-07-09 00:31:28 +08:00
Alex Zimin
8d5232be6b
Merge remote-tracking branch 'forkorigin/master' into detect-nemerle-language
...
Conflicts:
lib/linguist/mimes.yml
test/test_blob.rb
2011-07-09 00:16:19 +08:00
Alex Zimin
41dc2d027a
Fixed typo on hello.n sample.
2011-07-08 12:08:32 +08:00
Alex Zimin
1af6112471
Detect Nemerle language
2011-07-08 12:03:11 +08:00
Joshua Peek
d886722de5
Ensure scheme extensions are treated as plain text
2011-07-07 10:47:58 -05:00
Joshua Peek
44699ba9b9
Less extensive testing
2011-07-06 10:13:28 -05:00
Joshua Peek
10a39fc09e
Don't index python traceback
2011-07-06 10:04:46 -05:00
Joshua Peek
86be463cd9
Mark JSON as not searchable
2011-07-06 09:58:08 -05:00
Joshua Peek
aa3b28510f
These have been reindexed already
2011-07-06 09:55:45 -05:00
Vladimir Panteleev
841cb9a28f
Add test for .dpr / Delphi
2011-07-06 06:45:05 -07:00
softprops
29dc47dfb7
Merge branch 'master' of git://github.com/github/linguist into detect-sbt-as-scala-lang
2011-07-05 22:21:29 -04:00