Aman Gupta
7cdee48bab
handle missing blob mode
2011-11-23 03:00:18 -08:00
Aman Gupta
d2118d1471
only check for shebangs in executable files
2011-11-23 01:37:01 -08:00
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
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
Gregory McWhirter
5e2b586914
Adding support for .sage file syntax highlighting ( http://sagemath.org )
2011-11-22 10:08:19 -08: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
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
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
Humza
2244025b71
More FORTRAN file extensions
2011-11-06 14:25:44 -05: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
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
Zameer Manji
936e49f50f
Set filenames vimrc and gvimrc to be VimL.
2011-10-22 21:21:15 -03:00
Joshua Peek
ed5ddf720f
Sort Tex extensions
2011-10-14 10:04:30 -05: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
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
Joshua Peek
caa39a2bcf
Use Charlock all the time for binary detection
2011-09-28 09:57:33 -05:00
Joshua Peek
615908ca85
Merge pull request #77 from robsimmons/master
...
Standard ML is actually a programming language... and it has a specific lexer now.
2011-09-27 08:19:13 -07:00
Joshua Peek
84df2aaa0a
Encoding could still be nil
2011-09-27 10:18:44 -05:00
Joshua Peek
c6896d6338
Enable Verilog lexer
2011-09-26 11:31:24 -05:00
Robert J. Simmons
fcd97caaf7
Standard ML files still haven't been showing up as languages in GitHub's "what languages does this project use" view; is the lack of a "type: programming" line the reason why?
...
Additionally, the Standard ML-specific lexer has been added to Pygments on Bitbucket's; GitHub may not use bleeding-edge Pygments, but it should be eventually possible to use Standard ML-specific lexer rather than the OCaml one.
2011-09-23 10:31:17 -03:00
amiridis
e04df8dda2
Add .pac files as files with JavaScript content
2011-09-22 12:03:59 -05:00
Michael Maclean
966ef4d391
Ignore waf, a Python build system often bundled
2011-09-21 16:59:43 +02:00
Joshua Peek
5a584c095b
Fix Haml and Sass grouping and highlighting
2011-09-16 13:54:10 -05:00
Joshua Peek
1c24de490b
Treat as binary if encoding is nil
2011-09-08 13:30:21 -05:00
Joshua Peek
7ed26bfcf3
Use charlock to detect binary blobs
2011-09-06 19:58:29 -05:00
Joshua Peek
0c137c2d85
Fix AutoHotkey lexer
2011-09-06 11:28:12 -05:00
Joshua Peek
b515ed4886
Merge pull request #75 from stof/patch-1
...
Added the support for Twig
2011-09-06 09:26:03 -07:00
Joshua Peek
6ebd05958b
Fix AutoHotKey sorting
2011-09-06 11:22:45 -05:00
Christophe Coevoet
b8d1cd9ee5
Added the support for Twig
2011-09-06 19:22:05 +03:00
Anthony Zhang
1a5e7a1598
Add "Text only" lexing, for now, until Pygments accepts the AutoHotkey lexer.
2011-09-01 18:06:14 -04:00
Anthony Zhang
d73657078d
Merge remote-tracking branch 'upstream/master'
2011-09-01 17:56:09 -04:00
Joshua Peek
0239a59248
sort
2011-09-01 15:52:48 -05:00
Kevin Sawicki
947a396318
Add extensions and file names for Eclipse metadata files
2011-09-01 13:41:22 -07:00
Anthony
973a4d4f04
Add AutoHotkey definition.
2011-09-01 16:15:39 -03:00
Joshua Peek
350465d84d
Fix groovy regexp warning
2011-08-30 14:29:18 -05:00
Joshua Peek
f7ef770d8c
Remove lexer require
2011-08-30 14:23: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