Commit Graph

2045 Commits

Author SHA1 Message Date
Brandon Keepers d7fd12cb32 Remove deprecated method 2014-11-18 15:19:23 -05:00
Brandon Keepers 850ab6dedb #all_extensions already includes primary extension 2014-11-18 15:10:07 -05:00
Brandon Keepers ac59620728 Remove blank extensions property 2014-11-18 14:48:43 -05:00
Brandon Keepers 757801e32f Merge remote-tracking branch 'origin/master' into filename-matches-multiple-langages
* origin/master:
  Allow mime-types 2.x to be used with Linguist
  Upgrade to rugged 0.22.0b1
  Mention that languages need to be quite popular
  fix vendor/cache
  Gemfile.lock is nolonger considered generated
  Tests for BlobHelper#empty?
  remove reference to empty.js
  Remove more empty samples
  Bail earlier if the file is empty.
  Moving comments
  Use heuristics earlier to inform the rest of the classification process
  Removing inconsistency of `find_by_heuristics` (was sometimes returning nil and sometimes returning and empty array)
  Removing unused array of candidate languages.
  Reworking most heuristics to only return one match
2014-11-18 14:09:15 -05:00
Arfon Smith 0443c4db2d Merge pull request #1674 from github/rework-heuristics
Rework heuristics
2014-11-18 10:43:01 -06:00
Brandon Keepers cd7549390e Extensions aren't actually required 2014-11-17 20:00:09 -05:00
Brandon Keepers 63c83d014b Fix errors from pedantic test 2014-11-17 18:53:14 -05:00
Arfon Smith c5344da2ba Removing extensions when they should be filenames 2014-11-17 16:44:39 -06:00
Arfon Smith 7d850d7c09 Gemfile.lock is nolonger considered generated 2014-11-17 16:31:47 -06:00
Adam Roben 970953ca12 Merge pull request #1727 from pchaigno/lexer-inform7
Lexer for Inform 7
2014-11-17 14:45:46 -05:00
Vicent Marti 7cf6372519 Version 4.0.1 2014-11-17 18:09:26 +01:00
Paul Chaignon 1d381233e0 Update tm_scope to match case used in Sublime-Inform 2014-11-17 11:19:23 -05:00
Paul Chaignon 40887930f9 Lexer for Inform 7 2014-11-17 09:41:35 -05:00
Paul Chaignon 81089416a2 Makefile set to programming type 2014-11-16 23:13:31 -05:00
Vicent Marti 9b9fadfa19 Use a Racket grammar for Racket 2014-11-16 13:47:19 +01:00
Vicent Marti f0bd24f810 DOT was already a thing 2014-11-14 19:20:47 +01:00
Vicent Marti 6b3ba29558 Reindent 2014-11-14 19:11:11 +01:00
Vicent Marti 9e28965259 Rename Dockerfile 2014-11-14 19:04:11 +01:00
Vicent Marti 3fc01d09ce Hah Parrot was already a thing 2014-11-14 19:00:21 +01:00
Vicent Marti a4ae90e2e9 Add Thrift 2014-11-14 18:58:30 +01:00
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
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
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