Commit Graph

235 Commits

Author SHA1 Message Date
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
37560f4f60 Add test for the AutoHotkey language. 2011-09-01 16:38:17 -03: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
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
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
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
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
softprops
3e93fe091f sbt build files 2011-07-05 22:18:16 -04:00
Joshua Peek
96a14e795b Merge branch 'detect-prolog' of https://github.com/tautologico/linguist into tautologico-detect-prolog
Conflicts:
	lib/linguist/blob_helper.rb
	test/test_blob.rb
2011-07-05 16:06:22 -05:00
Andrei Formiga
b3e7065972 Added detection for Prolog and disambiguation for .pl files 2011-07-05 17:33:28 -03:00
Joshua Peek
aaed4ee1d4 Uncomment test 2011-07-05 09:45:20 -05:00
Rok Žlender
111ebe3c80 Identify php files by first line
Fixes #32
2011-07-05 09:43:48 -05:00
Joshua Peek
5ecc4421d7 Basic Matlab detection
Fixes #15
2011-07-05 09:34:33 -05:00
Joshua Peek
aeef1d8f33 JS is minified if its average line length is greater than 100c
Fixes #27
2011-07-02 20:28:42 -05:00
Andreas Bolka
2707d1db67 Guess if .r is R or REBOL
.r is the default extension used widely for both, R and REBOL. This
patch attempts to guess if .r is a REBOL file by looking for the
following very common REBOL code fragments:

- `REBOL`
- `: func [`
- `make object! [`
- `context [`

If any of those is found in a .r file, it is identified as a REBOL file.
Otherwise the language for a .r file is R.

Signed-off-by: Andreas Bolka <a@bolka.at>
2011-06-29 01:42:50 +02:00
Joshua Peek
58e99aa5aa Test blank file 2011-06-28 09:26:35 -05:00
Joshua Peek
ebba204ba3 Check for multiline shebang script hacks
Fixes #8
2011-06-27 17:35:48 -05:00
Joshua Peek
c504c4f55a Add test for Scribble 2011-06-27 14:55:15 -05:00
Joshua Peek
ddb629b63a Highlight .gradle files as Groovy 2011-06-25 13:50:41 -05:00
Joshua Peek
6f03cfc67c Assume utf8 when serving raw text blobs 2011-06-23 16:51:03 -05:00
Joshua Peek
876265e8f3 Return nil if no Language if found 2011-06-18 21:49:02 -05:00
Joshua Peek
09827c82bd Add Standard ML to languages 2011-06-15 12:54:29 -05:00
Joshua Peek
19e1064e82 Treat .cu files as .cpp 2011-06-15 12:39:41 -05:00
Joshua Peek
ccaf8639f0 Add mime type for SuperCollider 2011-06-15 12:21:29 -05:00
Joshua Peek
c1242a47ee Sort blob tests 2011-06-14 00:15:09 -05:00
Joshua Peek
132067a201 Skip pygments tests if pygmentize isn't available 2011-06-13 22:06:08 -05:00
Joshua Peek
5691d61b24 Add Nimrod langauge
Fixes #2
2011-06-13 17:35:17 -05:00
Joshua Peek
53af4ad8b5 Highlight OpenCL as C 2011-06-13 10:04:55 -05:00
Joshua Peek
1fc07145b8 Lower generated line limit to 500c 2011-06-08 10:52:42 -05:00
Joshua Peek
0d53e863df Remove blob fixture namespace 2011-06-07 10:32:23 -05:00
Joshua Peek
c7739119b3 Separate filename and extension configuration 2011-06-07 10:31:39 -05:00
Joshua Peek
34a7889370 Illustrator files should be binary 2011-06-06 10:51:32 -05:00
Joshua Peek
e7ac75e459 Add .applescript extension to AppleScript 2011-06-06 09:51:07 -05:00