Vicent Marti
4928828874
Add Ninja
2014-11-14 18:56:34 +01:00
Vicent Marti
af90ac3758
add Maven buildfiles
2014-11-14 18:54:27 +01:00
Vicent Marti
d4e6798ba8
add Graphviz
2014-11-14 18:48:19 +01:00
Vicent Marti
03b250990d
Add Cap'n Proto
2014-11-14 18:46:16 +01:00
Vicent Marti
5bc0ce0888
Add Bison
2014-11-14 18:44:12 +01:00
Vicent Marti
a0bbf7df6f
Add Ant
2014-11-14 18:41:36 +01:00
Vicent Marti
6b90f22cef
Add Parrot IR
2014-11-14 18:37:54 +01:00
Vicent Marti
d290576543
Add Docker Files as a language
2014-11-14 18:16:51 +01:00
Vicent Marti
b40459335b
...actually... This is 4.0.0 because of breaking changes
2014-11-14 17:38:39 +01:00
Vicent Marti
51b16ca965
oops
2014-11-14 17:37:12 +01:00
Vicent Marti
5dafa937de
Remove lexers from languages.yml
2014-11-14 17:37:12 +01:00
Vicent Marti
2307c2e9fc
Bump version to 3.6.0
2014-11-14 17:37:12 +01:00
Vicent Marti
4a10b27611
Remove Pygments
2014-11-14 17:37:12 +01:00
Adam Roben
046fb18980
Add github-linguist-grammars gem
...
The purpose of this gem is to package up the language grammars that are
used for syntax highlighting on github.com. The grammars are TextMate,
Sublime Text, or Atom language grammars, converted to JSON and given the
filename SCOPE.json, where SCOPE is the language scope that the grammar
defines.
The github-linguist-grammars gem packages up all the grammars, and also
exports a Linguist::Grammars.path method to locate the directory
containing the grammars.
To build the gem, simply run `rake build_grammars_gem`. The grammars.yml
file lists all the repositories we download grammars from, as well as
which scopes are defined by each repository. The
script/download-grammars script takes that list and downloads and
processes the grammars into the format expected by the gem.
2014-11-13 11:03:53 -05:00
Adam Roben
9acf41b0fe
Use source.fortran.modern TM scope for FORTRAN
...
This is technically only for FORTRAN 90 and newer, but seems to do just fine with older variants.
2014-11-13 09:52:08 -05:00
Paul Chaignon
9c64f72f35
Add .mm as an XML extension with heuristic rule
2014-11-12 19:38:54 -05:00
Adam Roben
9469e188c8
Bump to version v3.5.2
2014-11-12 13:39:05 -05:00
Vicent Marti
6e57ca6fbc
Update the TM scope for the Zephir language
2014-11-12 18:19:10 +01:00
Adam Roben
a9eac8a832
Add a tm_scope for GAS
...
The source.asm.x86 grammar does a decent job of parsing this.
2014-11-12 12:07:23 -05:00
Adam Roben
960ff73c7f
Fix the tm_scope for Less
...
The source.css.less grammar actually understands Less syntax.
2014-11-12 11:43:52 -05:00
Sebastian Godelet
95777055d1
languages.yml: added an interpreter entry to Mercury section
2014-11-11 23:28:07 +08:00
Brandon Keepers
e1ce30c3ce
Merge pull request #1653 from baroquebobcat/patch-1
...
add pants BUILD file highlighting to languages.yml
2014-11-11 01:39:55 -05:00
Brandon Keepers
89b442c751
Merge pull request #1657 from techniq/patch-1
...
Add .NET config files as XML
2014-11-11 01:39:19 -05:00
Adam Roben
62cb42eee5
Bump to 3.5.1
2014-11-10 15:15:15 -05:00
Adam Roben
160598b9ef
Make it safe to pass nil to Language.find_by_name/alias again
...
This restores compatibility with v3.4.x.
2014-11-10 15:12:29 -05:00
Adam Roben
8890c57681
Bumping to 3.5.0
2014-11-10 14:38:55 -05:00
Adam Roben
de188126fb
Merge pull request #1683 from github/find-by-ext
...
Extract Language.find_by_extension
2014-11-10 14:37:45 -05:00
Adam Roben
97a1adcef1
Allow extensions without a leading dot
...
This makes the API a little easier to use.
2014-11-10 14:30:37 -05:00
Adam Roben
ffbe95d6e5
Fix docs
2014-11-10 14:15:21 -05:00
Brandon Keepers
92ace440b9
Merge pull request #1540 from rlespinasse/golo-support
...
Add support for Golo language
2014-11-08 14:00:36 -05:00
Adam Roben
6e8152c423
Add a TextMate scope for .sh-session files
...
Coming soon to Atom. See https://github.com/atom/language-shellscript/pull/3
2014-11-07 15:02:37 -05:00
Adam Roben
8149356668
Merge pull request #1678 from tenbits/master
...
Use MaskLexer for *.mask
2014-11-07 13:39:24 -05:00
Alex Kit
806e30d70f
Use MaskLexer for *.mask
2014-11-07 19:26:37 +01:00
Adam Roben
f6fbd18bd5
Add a TextMate scope for .pytb files
...
This is the scope that Atom uses for these files.
See https://github.com/atom/language-python/blob/master/grammars/python-traceback.cson
2014-11-07 12:55:59 -05:00
Brandon Keepers
228d89649a
Add Language.find_by_extension
2014-11-07 10:27:07 -05:00
Adam Roben
751360ecf1
Make Language.[] and Language.find_by(alias|name) ignore case
...
This makes it easier to find a Linguist::Language for a fenced code
block in Markdown, where language names are often specified in
lowercase.
2014-11-07 10:09:55 -05:00
Adam Roben
d9ed216092
Add language aliases from Pygments
...
I went through all the aliases Pygments supports and removed the ones
that could already be used to find a Linguist::Language. Then I found
the Pygments::Lexer associated with each alias and found an associated
Linguist::Language for it (looking for a language with the same name as
the lexer, or by looking for the first langauge that uses that lexer).
Then I added the alias to the language's alias list.
2014-11-06 16:48:52 -05:00
Adam Roben
18a3ef9e5e
Pull in file extensions from Pygments
...
I read all the file extensions that Pygments knows about, mapped them
back to the appropriate Linguist::Language, and added them to the
languages.yaml file.
2014-11-06 16:43:08 -05:00
Brandon Keepers
df55043500
Bail earlier if the file is empty.
...
This will change behavior for empty files with unique extensions, returning nil instead of the language.
2014-11-06 14:49:24 -06:00
Arfon Smith
1831390429
Use heuristics earlier to inform the rest of the classification process
2014-11-06 14:09:19 -06:00
Arfon Smith
f4c7661cc6
Removing inconsistency of find_by_heuristics (was sometimes returning nil and sometimes returning and empty array)
2014-11-06 14:08:42 -06:00
Arfon Smith
0ab88919c9
Removing unused array of candidate languages.
2014-11-06 13:31:34 -06:00
Arfon Smith
9107d3c243
Reworking most heuristics to only return one match
2014-11-06 13:26:40 -06:00
Blake Embrey
42e9131b4f
Add RAML support
2014-11-06 11:47:00 -06:00
Arfon Smith
0946791434
Merge branch 'master' into support-hack
...
Conflicts:
lib/linguist/heuristics.rb
2014-11-04 16:09:00 -06:00
Brandon Keepers
06bcdba9c4
Merge pull request #1654 from danijar/master
...
Exclude minified JavaScript and CSS
2014-11-03 14:20:59 -05:00
Nick Howard
729a174eb6
add pants BUILD file highlighting to languages.yml
...
the pants build tool uses python files named BUILD. This adds highlighting for them.
2014-11-03 12:11:14 -07:00
Danijar Hafner
1dbbcb73e7
Add tests for minified JavaScript and CSS
...
Also, exclude -min.css pattern, like already done for JavaScript files
2014-11-03 19:41:31 +01:00
Brandon Keepers
74fa4b9b75
docs
2014-11-03 08:54:11 -05:00
Sean Lynch
87df17309c
Fix package.config to packages.config
2014-11-03 08:35:14 -05:00