Commit Graph

900 Commits

Author SHA1 Message Date
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
softprops
3e93fe091f sbt build files 2011-07-05 22:18:16 -04:00
Joshua Peek
8f46cd0748 Try to classify language types 2011-07-05 20:48:06 -05:00
Joshua Peek
32dfa5a2dd .h is ambiguous 2011-07-05 19:56:29 -05:00
Joshua Peek
1e453a22b5 Be explicit about ambiguous extensions 2011-07-05 19:51:54 -05:00
Joshua Peek
d984640546 Merge pull request #35 from github/pygments-new-lines
Preserve new lines for syntax highlighting
2011-07-05 14:47:03 -07: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
f4cfde45bd Included test files for .pl disambiguation 2011-07-05 18:01:44 -03:00
Joshua Peek
93330c5be3 Preserve new lines for syntax highlighting 2011-07-05 15:50:33 -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
bilderbuchi
cc3692b320 Add simple test fixtures for Matlab. 2011-07-05 22:14:37 +08:00
Joshua Peek
074a77e649 Allow any enum to be passed to Repository for stat collecting
Fixes #28
2011-07-02 20:54:05 -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
3513be30f9 Merge pull request #11 from horndude77/detect-lilypond-language
Detect lilypond language.
2011-06-28 07:11:30 -07:00
Konstantin Haase
4202a2a402 add support for Fancy 2011-06-28 15:04:57 +02:00
Jay Anderson
a5ff16c1dc Detect lilypond language. 2011-06-27 20:19:39 -07: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
69f4c9cc6e Rename major to common 2011-06-22 10:37:20 -05:00
Joshua Peek
a881cde6fd Add language groups 2011-06-22 10:07:37 -05:00
Joshua Peek
876265e8f3 Return nil if no Language if found 2011-06-18 21:49:02 -05:00
Joshua Peek
063bf21c66 Return nil if no Language is found 2011-06-18 20:57:58 -05:00
Joshua Peek
7c2a8874a3 Return nil if no Language is found 2011-06-18 20:45:49 -05:00
Joshua Peek
a75a57eb5e Make Language name finder case sensitive 2011-06-18 20:29:47 -05:00
Joshua Peek
80473e5849 Case-sensitive lexer name lookup 2011-06-18 20:19:34 -05:00
Joshua Peek
cfb952b867 Proper lexer casing 2011-06-18 20:19:10 -05:00
Joshua Peek
e8c09e91d5 Add find lexer by mimetype 2011-06-18 20:09:11 -05:00
Joshua Peek
4304d3858a Define legacy MiniD language for old search results 2011-06-16 09:55:36 -05:00
Joshua Peek
d827a807f7 Add rb alias to Ruby 2011-06-16 09:55:09 -05:00
Joshua Peek
53ef5c1b89 More language aliases tests 2011-06-16 09:54:51 -05:00
Joshua Peek
2bcae1e2d1 Add iWork mime types 2011-06-16 08:56:13 -05:00
Joshua Peek
5fe9701e50 Revert "Highlight SuperCollider as Smalltalk"
This reverts commit 6beb69167c.
2011-06-15 13:56:30 -05:00
Joshua Peek
6beb69167c Highlight SuperCollider as Smalltalk 2011-06-15 13:29:26 -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
46f0c8f4f0 Fix Groff extensions 2011-06-13 23:24:11 -05:00
Joshua Peek
dfceaf06be Consistent quotes 2011-06-13 22:56:51 -05:00
Joshua Peek
063c3a60fb Sort language tests 2011-06-13 22:55:01 -05:00