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
Joshua Peek
4a18078c5d
Remove duplicate .bash extension
2011-07-05 15:59:01 -05:00
Joshua Peek
93330c5be3
Preserve new lines for syntax highlighting
2011-07-05 15:50:33 -05:00
Bryce "BonzoESC" Kerley
e3d0028ff3
Added .zsh and .bash extensions to the Shell language definition.
2011-07-05 13:43:11 -07:00
Andrei Formiga
b3e7065972
Added detection for Prolog and disambiguation for .pl files
2011-07-05 17:33:28 -03: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
074a77e649
Allow any enum to be passed to Repository for stat collecting
...
Fixes #28
2011-07-02 20:54:05 -05:00
Joshua Peek
18fc137c96
Merge pull request #29 from supahgreg/addJSMextension
...
Added .JSM (JavaScript Module) to JavaScript's extension list.
2011-07-02 18:29:15 -07: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
Christopher Manning
fe2f26d02e
Quote extension to prevent yaml from incorrectly casting the values
...
Fixes #26
2011-07-02 20:09:40 -05:00
supahgreg
dcb1bdba92
Added .JSM (JavaScript Module) to JavaScript's extension list.
2011-07-02 20:07:53 -05:00
Joshua Peek
7f6494be1a
Simpler lexer yaml format
...
Fixes #25
2011-07-02 20:07:34 -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
521bb9b9b2
major should only be set by staff
2011-06-28 11:26:42 -07:00
Joshua Peek
58e99aa5aa
Test blank file
2011-06-28 09:26:35 -05:00
Joshua Peek
0576f1742f
Merge pull request #14 from jtyost2/patch-1
...
Edited PHP extensions, added .ctp for CakePHP projects.
2011-06-28 07:13:11 -07:00
Joshua Peek
a527bf83b0
Merge pull request #13 from meh/master
...
Add .rbuild as Ruby extension
2011-06-28 07:12:28 -07:00
Joshua Peek
e1a446d245
Not major yet
2011-06-28 09:11:58 -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
Joshua Peek
98badaeed2
Fancy lexer can be implicit
2011-06-28 09:10:50 -05:00
Konstantin Haase
4202a2a402
add support for Fancy
2011-06-28 15:04:57 +02:00
Justin Yost
ee432993cb
Edited PHP extensions, added .ctp for CakePHP projects.
2011-06-27 23:25:26 -07:00
meh
934cfaf944
Add .rbuild as Ruby extension
2011-06-28 07:52:55 +02:00
Jay Anderson
cf70cd7eb3
Move LilyPond after LLVM.
2011-06-27 21:48:55 -07:00
Jay Anderson
59ed20e153
Alphabetical order.
2011-06-27 21:45:44 -07:00
Jay Anderson
a5ff16c1dc
Detect lilypond language.
2011-06-27 20:19:39 -07:00
Carlos Galdino
176aad0259
fixing typo
2011-06-27 20:47:44 -03:00
Joshua Peek
ebba204ba3
Check for multiline shebang script hacks
...
Fixes #8
2011-06-27 17:35:48 -05:00
Eli Barzilay
e29003bd14
Added scribble file extension to Racket.
...
This is our documentation language, http://docs.racket-lang.org/scribble/ ,
and the files are still racket files even though the syntax looks completely
different.
2011-06-27 15:37:25 -04:00
Joshua Peek
8d9dceab98
Out of date comment
2011-06-25 18:09:33 -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
bb7722d43a
Use language group for computing repo stats
2011-06-22 10:42:18 -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
728d0e2793
This is has been fixed
2011-06-18 20:35:05 -05:00
Joshua Peek
43807c63e6
Create a separate index for lookup
2011-06-18 20:33:17 -05:00
Joshua Peek
a75a57eb5e
Make Language name finder case sensitive
2011-06-18 20:29:47 -05:00
Joshua Peek
70d6cf21d9
Merge name and alias index
2011-06-18 20:25:23 -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
c35519c893
Ensure all lexer attributes are Arrays
2011-06-18 19:59:30 -05:00