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
Joshua Peek
2fbb3236e5
Add .xqm to XQuery
2011-06-04 09:19:37 -05:00
Joshua Peek
734cc29391
Set content-type to text/plain for all non binary files
2011-06-03 11:21:16 -05:00
Joshua Peek
40efc2bd44
Use mime binary
2011-06-03 10:44:21 -05:00
Joshua Peek
d9990aed06
Default to not binary
2011-06-02 15:20:50 -05:00
Joshua Peek
bcc2042768
Separate registry content type and content disposition
2011-06-02 12:14:19 -05:00
Joshua Peek
c41b9c13cc
Improve config file detection
2011-06-01 23:14:13 -05:00
Joshua Peek
beee499fdc
Test nu shell
2011-06-01 22:42:17 -05:00
Joshua Peek
48250bf09c
Test gas file
2011-06-01 11:35:16 -05:00
Joshua Peek
61bdd3deaf
Guess .h language
2011-05-27 14:57:11 -05:00
Joshua Peek
817a234ab7
Reorder indexable checks to defer calling size
2011-05-27 14:28:37 -05:00
Joshua Peek
a00013a077
Change FileBlob to accept a base path
2011-05-25 13:12:01 -05:00
Joshua Peek
5a780fbdc1
Add FileBlob
2011-05-25 12:52:12 -05:00
Joshua Peek
972632b9db
CoffeeScript JS guessing
2011-05-25 11:25:11 -05:00
Joshua Peek
92ab0a1ccb
Clean up vendor config
2011-05-25 10:27:53 -05:00
Joshua Peek
d889887440
Detect minified JS
2011-05-24 14:16:05 -05:00
Joshua Peek
d4b89b4331
Add Blob#indexable?
2011-05-24 13:44:55 -05:00
Joshua Peek
b5ef077778
Remove lexer_name helpers
2011-05-23 10:14:51 -05:00