Commit Graph

533 Commits

Author SHA1 Message Date
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
Aman Gupta
9994ac3a0c only load blobs to check for <?php header for specific drupal file extensions 2011-11-23 00:50:44 -08:00
Aman Gupta
21488c84c3 delay calls to binary? in guess_language until viewable?, to avoid loading blobs for well known file extensions 2011-11-23 00:49:59 -08:00
Aman Gupta
bb4840ca3e viewable? should not load or binary check large blobs 2011-11-23 00:49:11 -08:00
Aman Gupta
4b9a1c297b bail fast on file extensions we recognize as binary 2011-11-23 00:32:14 -08:00
Paul Betts
1c0b782606 Merge pull request #92 from sunaku/patch-1
languages.yml: support GNUmakefile and makefile
2011-11-23 00:15:31 -08:00
Suraj N. Kurapati
83423f3aaf languages.yml: support GNUmakefile and makefile
GNU make manpage says: "If  no  -f  option  is present,  make will look
for the makefiles GNUmakefile, makefile, and Makefile, in that order."
2011-11-22 23:50:45 -08:00
Joshua Peek
e445438333 Merge pull request #91 from gsmcwhirter/detect-sage
Adding support for .sage file syntax highlighting
2011-11-22 10:15:16 -08:00
Gregory McWhirter
5e2b586914 Adding support for .sage file syntax highlighting (http://sagemath.org) 2011-11-22 10:08:19 -08:00
Joshua Peek
df1b8e3d7f Merge branch 'Open-Turing-Project-detect-turing-language' 2011-11-21 10:43:18 -06:00
Joshua Peek
e4fe1d17e7 Add tests for Perl and Turning detection 2011-11-21 10:42:39 -06:00
Joshua Peek
0b5a265644 Cleanup whitespace 2011-11-21 10:20:19 -06:00
Joshua Peek
5e75de1992 Merge branch 'detect-turing-language' of https://github.com/Open-Turing-Project/linguist into Open-Turing-Project-detect-turing-language 2011-11-21 10:17:39 -06:00
Joshua Peek
65867bed18 Merge pull request #89 from FredrikL/detect-arduino
Detect Arduino 1.0
2011-11-17 09:46:49 -08:00
Fredrik Leijon
1182d9d328 Detect Arduino 1.0
Arudino fixture for tests
2011-11-17 18:28:18 +01:00
Tristan Hume
5d4057324f Added Turing language detection 2011-11-16 18:55:55 -05:00
Joshua Peek
2e653dda2f before_install for like the 3rd time 2011-11-09 12:25:35 -06:00
Joshua Peek
14dfe6e232 Move before_script up 2011-11-09 12:23:27 -06:00
Joshua Peek
10345a2414 before_script 2011-11-09 12:20:19 -06:00
Joshua Peek
2cbb8bc373 try without quotes 2011-11-09 12:18:12 -06:00
Joshua Peek
9a2dc66068 Kill whitespace 2011-11-09 12:03:43 -06:00
Joshua Peek
1276b2ee15 yes to all 2011-11-09 12:02:13 -06:00
Joshua Peek
479c366860 before_install 2011-11-09 12:01:12 -06:00
Joshua Peek
21e0f86b68 one line 2011-11-09 11:59:54 -06:00
Joshua Peek
e83033e9cf sudo 2011-11-09 11:56:28 -06:00
Joshua Peek
5603b60c75 Merge pull request #88 from alloy/detect-CocoaPods-documents
Detect CocoaPods documents
2011-11-09 07:26:49 -08:00
Eloy Duran
d70e8272d8 Add note to README about errors when the CharlockHolmes gem isn't installed correctly. 2011-11-09 12:56:19 +01:00
Eloy Duran
a576b8d3c8 Recognize CocoaPods documents as Ruby source files.
Examples:
* https://github.com/alloy/cocoapods/blob/master/examples/MacRubySample/Podfile
* https://github.com/alloy/cocoapods-specs/blob/master/SSToolkit/0.1.2/SSToolkit.podspec

Also sorted filenames in languages.yml.
2011-11-09 12:55:15 +01:00
Joshua Peek
4b8c1fb390 Sort extensions 2011-11-07 10:21:52 -06:00
Joshua Peek
665da85bf1 Merge pull request #87 from secondplanet/patch-3
More FORTRAN file extensions
2011-11-06 11:38:02 -08:00
Joshua Peek
4bb8143314 Merge pull request #86 from secondplanet/patch-2
Add missing alias tests
2011-11-06 11:37:48 -08:00
Humza
2244025b71 More FORTRAN file extensions 2011-11-06 14:25:44 -05:00
Humza
c73689ee0c Add missing alias tests 2011-11-06 14:18:30 -05:00
Joshua Peek
6df265e04a Merge pull request #85 from secondplanet/patch-1
Add 'emacs' alias for Emacs Lisp
2011-10-30 10:00:07 -07:00
Humza
1892a8261d Add 'emacs' alias for Emacs Lisp
Lets you use '#!/usr/bin/env emacs --script' shebang line.
2011-10-30 10:53:20 -03:00
Joshua Peek
ce3a3a024d Merge pull request #84 from kepstin/master
Highlight ".vapi" files as Vala
2011-10-25 10:04:51 -07:00
Calvin Walton
64a0193a3c Highlight ".vapi" files as Vala
.vapi files are vala interface definitions for external C libraries,
and use the same syntax as regular .vala files. Support highlighting them
as well.
2011-10-25 13:57:16 -03:00
Joshua Peek
23ced26140 Merge pull request #83 from zmanji/patch-1
Set filenames `vimrc` and `gvimrc` to be VimL.
2011-10-24 07:03:12 -07:00
Zameer Manji
936e49f50f Set filenames vimrc and gvimrc to be VimL. 2011-10-22 21:21:15 -03:00
Joshua Peek
d8903afc12 Install libicu 2011-10-14 12:07:01 -05:00
Joshua Peek
ed5ddf720f Sort Tex extensions 2011-10-14 10:04:30 -05:00
Joshua Peek
085e68aae2 Merge pull request #81 from maieul/master
.ins and .dtx hightlighting
2011-10-14 08:03:43 -07:00
maieul
cad9fbcdaa and ins too 2011-10-14 16:54:03 +02:00
maieul
c1f6f329cf .dtx files are also in tex language 2011-10-14 16:51:11 +02: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
5842ba38f0 Merge pull request #80 from developmentseed/detect-bones-language
Add bones suffix to JavaScript
2011-10-06 14:59:48 -07:00
Tom MacWright
873bc02ed3 Add bones suffix to JavaScript 2011-10-06 10:47:13 -04:00
Joshua Peek
6a2d84d422 Don't send blank attachment filename 2011-09-28 10:48:55 -05:00
Joshua Peek
6e03f954bc Large blobs should be binary 2011-09-28 10:14:46 -05:00