Commit Graph

272 Commits

Author SHA1 Message Date
Joshua Peek
9d555862c3 Merge branch 'master' into bayesian 2012-06-19 15:02:02 -05:00
Joshua Peek
79a473cf58 Add some more apex and openedge fixtures 2012-06-19 15:01:58 -05:00
Joshua Peek
ddf3ec4a5b Warn if classifier instance is out of date 2012-06-19 14:32:04 -05:00
Joshua Peek
d566b35020 Allow classifer languages to be scoped 2012-06-19 14:21:42 -05:00
Joshua Peek
8f85a447de Allow tokens to be passed directly to classify 2012-06-19 14:17:27 -05:00
Joshua Peek
d5fa8cbcb7 Refactor tokenizer test helper 2012-06-19 13:12:17 -05:00
Joshua Peek
ecb2397e59 Merge branch 'master' into bayesian 2012-06-19 11:43:48 -05:00
Michael Ficarra
93d0611b4e accidental hard tabs 2012-06-19 11:30:39 -05:00
Michael Ficarra
11166911dc Recognise that PEG.js-generated parsers are in fact generated 2012-06-19 11:18:51 -05:00
Joshua Peek
8a75d4d208 GC classifier db 2012-06-08 16:04:43 -05:00
Joshua Peek
62498cf0e9 Merge branch 'master' into bayesian 2012-06-08 15:46:48 -05:00
Joshua Peek
8a9d8a15af Building an army 2012-06-08 15:46:39 -05:00
Joshua Peek
6f6dd8bc38 Improve tokenizing sgml tags 2012-06-08 14:46:16 -05:00
Joshua Peek
9ecab364d1 Dump classifier results 2012-06-08 14:13:26 -05:00
Joshua Peek
0172623061 Add sample gathering class 2012-06-08 13:51:49 -05:00
Joshua Peek
e0c777d995 Fix test name 2012-06-08 13:43:37 -05:00
Joshua Peek
f747b49347 Add simple classifier 2012-06-07 17:10:28 -05:00
Joshua Peek
e0cbe815a3 Add basic Tokenizer 2012-06-07 14:55:11 -05:00
Joshua Peek
4df3199818 Reorg test fixtures 2012-06-07 12:17:24 -05:00
Joshua Peek
a708993388 Ensure all languages have unique primary extensions 2012-06-07 10:29:19 -05:00
Rob Sanheim
1c7b8ebe71 Make colorize safer:
- don't try to colorize blobs that have a high ratio of
    long lines -- these are most likely minified files or something else
    strange that will blow up Pygments.rb
  - re github/github#3938
2012-05-21 11:33:01 -05:00
Joshua Peek
285c9b4c60 Fix xslt mime type 2012-05-09 10:59:00 -05:00
Joshua Peek
2cbf428176 Use XSLT lexer 2012-05-09 10:41:11 -05:00
Joshua Peek
35fe44549e Fix empty .m file 2012-05-09 09:52:14 -05:00
Andrew D. Horchler
354e1fc85e More robust heuristics for .m files and 3 new Matlab tests. Support for Obj-C detection fully intact; all tests pass. Detection of Obj-C keywords @implementation, @property, @interface, and @synthesize removed to avoid possible conflicts with user-created Matlab function handles. Only @end is needed, which is not valid in Matlab. Matlab class files supported. Comments preceded by whitespace detected for Obj-C and Matlab.
Signed-off-by: Andrew D. Horchler <adh9@case.edu>
2012-05-08 18:31:18 -04:00
Daniel Micay
be42a8411b add detection for Arch Linux PKGBUILDs 2012-05-08 07:39:48 -04:00
Joshua Peek
aa7c8497b1 Merge pull request #151 from aseemk/streamlinejs-support
Add ._js & ._coffee extensions for Streamline.js.
2012-05-07 19:44:14 -07:00
Joshua Peek
b618539c8b Ensure ext/ dir isn't ignored 2012-05-05 21:39:41 -05:00
Vicent Martí
d1297f626e Update tests accordingly 2012-04-29 16:05:30 -07:00
Joshua Peek
c3d6fc5af8 Colors! 2012-04-19 17:25:16 -05:00
Ilya Grigorik
cb715e2092 add fixture file for Dart 2012-04-09 14:41:01 -07:00
Ilya Grigorik
a3dc9fb138 add detection for Dart 2012-04-09 14:38:43 -07:00
Patrick O'Leary
4f0b457287 Updated Julia language with lexer and added tests 2012-04-04 21:28:29 -05:00
Aseem Kishore
17adccc844 Regression fix: ensure .coffee is primary ext.
(The primary extension by default is the first extension, but the extensions
need to be in alphabetical order, and _coffee comes before coffee.)
2012-04-03 14:56:11 -04:00
Aseem Kishore
54e81dd8fb Add ._js & ._coffee extensions for Streamline.js.
Streamline.js by Bruno Jouhier (@Sage) is a library/tool that lets you write
synchronous-looking JavaScript/CoffeeScript, and have it compile to Node-style
asynchronous JavasScript/CoffeeScript. (It's amazing and super elegant.)

https://github.com/Sage/streamlinejs

From the start, Streamline was designed to be exactly JavaScript/CoffeeScript,
so that it works with existing editors and tools. No new keywords or syntax --
it simply reserves `_` as a function parameter name.

Streamline files have thus kept `.js` and `.coffee` as extensions, so that no
changes need to be made to tools; Streamline has just used the convention of
ending file basenames with `_`, like `foo_.js` or `foo_.coffee`.

Unfortunately, to get the most optimal Node.js integration, with on-the-fly
compilation (like CoffeeScript), files now need to have their own extension.
So Bruno has decided to make `._js` and `._coffee` the extensions of choice.

The good news is that the language is still exactly JavaScript/CoffeeScript;
it's only the extension that's changed. It's simple to add these extensions
into our editors, but I'm wondering if we can add this to GitHub too. =)

This change is super simple and shouldn't affect any other language, so I hope
you guys are open to it. Thanks for your consideration!
2012-04-02 19:56:28 -04:00
Joshua Peek
19f2ee40a5 New lexers in 1.5 2012-03-28 11:40:14 -05:00
Martin d'Allens
dc145ff715 Set lexer for VHDL language.
Conflicts:

	test/test_blob.rb
2012-03-28 11:37:25 -05:00
Joshua Peek
791761b19f kt extension is real now 2012-03-28 11:25:36 -05:00
Joshua Peek
61d2e8c383 Merge pull request #140 from jstrachan/detect-kotlin-language
Added detection for the Kotlin language
2012-03-28 09:21:19 -07:00
Joshua Peek
39bb301a0e Merge pull request #142 from jaxzin/detect-tea
Added detection of the Tea language.
2012-03-28 09:16:40 -07:00
Joshua Peek
9d983b64b0 Fix tests 2012-03-28 11:03:22 -05:00
Joshua Peek
4c0a8b1ccf Ensure our custom mime types override mime-types lib 2012-03-28 10:22:32 -05:00
Joshua Peek
bda27c8b72 Correct mime type test 2012-03-28 09:44:24 -05:00
Joshua Peek
3b7b2020d2 State Ace compatible languages 2012-03-23 13:50:29 -05:00
Abe Voelker
22db59d8c0 Improve .cls language detection 2012-03-21 11:21:55 -05:00
Brian R. Jackson
a8660ea80f Added detection of the Tea language. 2012-03-19 17:36:23 -04:00
Joshua Peek
777f5a3b87 Revert "Merge pull request #129 from jaxzin/detect-tea"
This reverts commit 79f16caeb2, reversing
changes made to 087205893f.

No "Tea" lexer
2012-03-19 14:59:59 -05:00
Brian R. Jackson
26263bc288 Merging github/master 0872058 2012-03-19 15:54:24 -04:00
Joshua Peek
087205893f Fix name escaping 2012-03-19 09:35:46 -05:00
Brian R. Jackson
5357d283b4 Switch to Tea lexer which is available in Pygments 1.5. 2012-03-10 20:59:58 -05:00