Arfon Smith
d8b91bd5c4
The grand language renaming bonanza ( #3278 )
...
* Removing FORTRAN samples because OS X case-insensitive filesystems :-\
* Adding Fotran samples back
* FORTRAN -> Fortran
* Groff -> Roff
* GAS -> Unix Assembly
* Cucumber -> Gherkin
* Nimrod -> Nim
* Ragel in Ruby Host -> Ragel
* Jade -> Pug
* VimL -> Vim script
2016-12-13 13:39:27 -08:00
Paul Chaignon
9b941a34f0
Use filenames as a definitive answer ( #2006 )
...
* Separate find_by_extension and find_by_filename
find_by_extension now takes a path as argument and not only the file extension.
Currently only find_by_extension is used as a strategy.
* Add find_by_filename as first strategy
2016-12-12 12:34:33 -08:00
Paul Chaignon
9d8392dab8
Remove deprecated code ( #3359 )
...
* Remove deprecated find_by_shebang
* Remove deprecated ace_modes function
* Remove deprecated primary_extension function
Gists don't have a language dropdown anymore
* Remove deprecated Linguist::Language.detect function
* Remove deprecated search_term field
2016-12-12 12:24:19 -08:00
Brandon Black
2c78dd2c66
Bumping to v4.8.18 ( #3370 )
...
* make tests great again ✨
* version bump
* removing empty line in gemspec
v4.8.18
2016-12-07 11:39:49 -08:00
Brandon Black
3988f3e7a7
Merge branch 'rascal-linguist' of git://github.com/ahmadsalim/linguist into ahmadsalim-rascal-linguist
2016-12-07 09:28:40 -08:00
USAMI Kenta
d9a4e831b4
Add .php_cs and .php_cs.dist ( #3367 )
...
* Add .php_cs and .php_cs.dist
* Move files to filenames subdir
2016-12-07 09:20:40 -08:00
John Gardner
45c27f26a2
Add support for the GN configuration language ( #3368 )
...
* Add samples and definition for GN build files
* Add grammar to provide GN syntax highlighting
* Fix failing tests
* Add Python extensions for GYP includes and .gclient configs
2016-12-07 09:20:23 -08:00
Ahmad Salim Al-Sibahi
0fbc29bf68
Updated language id
2016-12-07 08:53:40 +01:00
Ahmad Salim Al-Sibahi
5569d2056d
Removed old submodules
2016-12-07 08:47:40 +01:00
Ahmad Salim Al-Sibahi
be262d0b4f
Merge remote-tracking branch 'refs/remotes/github/master'
...
Conflicts:
.gitmodules
grammars.yml
2016-12-07 08:36:48 +01:00
Brandon Black
33ce2d7264
Merge branch 'master' of https://github.com/github/linguist into meganemura-replace-haml
2016-12-06 22:13:40 -08:00
Paul Chaignon
c486f56204
Mark .indent.pro files as vendored ( #3361 )
2016-12-06 21:59:28 -08:00
Jim Deville
9f3b7d0ba5
Allow golang as an alias for Go code fences ( #3221 )
2016-12-06 21:55:25 -08:00
Paul Chaignon
79f20e8057
Heuristic rule for TeX .cls files ( #3360 )
2016-12-06 21:50:33 -08:00
Yamagishi Kazutoshi
cd30c7613c
Detect .babelrc ( #3358 )
...
`.babelrc` is Babel configuration file in JSON 5 format.
2016-12-06 21:43:33 -08:00
John Gardner
5aa53c0711
Swap grammar used for Ninja highlighting ( #3353 )
2016-12-06 21:32:11 -08:00
Ahmad Salim Al-Sibahi
c17cdca896
Updated to the latest available grammar
2016-12-06 11:22:09 +01:00
Christoph Päper
ecdae83364
Add support for font-specific formats ( #3142 )
...
* markdown and font-specific updates languages.yml
- Markdown: ← extensions: .md.txt
- Text: ← extensions: .text
- Text: ← filenames: FONTLOG http://scripts.sil.org/cms/scripts/page.php?item_id=OFL-FAQ_web#43cecb44
- OpenType: ← extensions: .fea https://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html
- Spline Font: ← extensions: .sfd http://fontforge.github.io/en-US/documentation/developers/sfdformat/
* Update languages.yml
`type: data` for SFD
* Update languages.yml
OpenType feature ← type: markup
* Update languages.yml
alphabetic order
* Update languages.yml
incorporated suggestions:
- “OpenType Font Feature” → “Opentype feature” (no “file” at the end, because that’s left out almost everywhere else, too)
- `tm_scope` according to https://github.com/Alhadis/language-fontforge
* remove non-font related additions
- `.md.txt` Markdown
- `.text` Plain Text
* Update languages.yml
remove comment
* changed names as requested
* Merge remote-tracking branch 'github/master' into patch-2
# Conflicts:
# lib/linguist/languages.yml
* quote marks
* Revert "Merge remote-tracking branch 'github/master' into patch-2"
This reverts commit 18e4256b828c4186fec806319cbf8b76f0d2c79b.
* Update language IDs
* Add missing submodule to grammars list
2016-12-05 18:50:05 -08:00
meganemura
31aafa2c78
Replace ruby-haml.tmbundle with language-haml
...
./script/add-grammar --replace ruby-haml.tmbundle https://github.com/ezekg/language-haml
2016-12-01 11:38:12 +09:00
Ahmad Salim Al-Sibahi
8a911b8ff3
Fixed ordering correctly
2016-11-30 00:15:17 +01:00
Ahmad Salim Al-Sibahi
9233f1d17f
Fixed color, order and ace mode
2016-11-30 00:03:55 +01:00
Ahmad Salim Al-Sibahi
77eb36a982
Added Rascal Language Id
2016-11-29 23:42:02 +01:00
Ahmad Salim Al-Sibahi
4e6e58a099
Added Example Rascal files
2016-11-29 23:37:34 +01:00
Ahmad Salim Al-Sibahi
c87976330f
Added Rascal Grammar Link
2016-11-29 23:15:16 +01:00
Simen Bekkhus
0e9109c3fc
Add Nunjucks highlighting ( #3341 )
2016-11-29 10:14:25 -08:00
meganemura
12f9295dd7
Improve grammar scripts ( #3350 )
...
* Remove trailing spaces
* Setup Bundler in some scripts
* Update grammar index
* Make prune-grammars script to be callable in a script directory
* Prune unused xquery grammar repo
source.xq by language-jsoniq is actual tm_scope for XQuery.
* Remove xquery submodule
git submodule deinit vendor/grammars/xquery/
git rm vendor/grammars/xquery/
* Fix invocation of script/list-grammars
This fixes #3339 .
* Make add-grammars script to be callable in a script directory
* Generate samples.json before running list-grammars
list-grammars requires linguist.
2016-11-29 10:13:33 -08:00
Santi Aguilera
581723748b
Added Dangerfile for ruby ( #3333 )
...
* Added Dangerfile for ruby
* rm ant.tmbundle from wlist because has license
Travis output says ant.tmbundle has license, so Im removing it from the whitelist (projects without license)
* Added sample
* New line at EOF
* Fix
* Remove bad file
2016-11-29 08:01:35 -08:00
Paul Chaignon
0980e304b1
Generate language_id ( #3284 )
...
* Generate language_id from language names
The language_id is generated from the SHA256 hash of the language's name
* Test the validity of language ids
All languages should have a positive 32bit integer as an id
* Update languages.yml header in set-language-ids
2016-11-29 07:50:44 -08:00
Kyle Smith
d46a529b6a
Add support for Thrift-generated PHP code. ( #3329 )
2016-11-29 07:49:41 -08:00
Paul Chaignon
1d2ec4dbc3
Fix error with filenames ending with a dot ( #3349 )
...
The second negative argument to split instructs it to
preserve null fields in the returned array
2016-11-29 07:42:50 -08:00
Brandon Black
829eea0139
Merge pull request #3337 from pchaigno/update-grammar-whitelist
...
Remove Ant from grammar whitelist
2016-11-21 17:13:29 -08:00
Paul Chaignon
78b2853d70
License of Ant grammar is correctly detected
...
The last version of Licensee can recognize
underlined license headers in READMEs
2016-11-18 23:47:55 +01:00
Ahmad Salim Al-Sibahi
202f3c08cd
Started on adding support for rascal.
2016-11-14 14:29:30 +01:00
Brandon Black
b958779e3d
Merge pull request #3325 from danilaml/py3-ext
...
Add py3 to Python's extensions list
2016-11-13 17:57:56 -08:00
Danila Malyutin
00dc775daf
Update, according to comments
2016-11-12 22:01:31 +03:00
Danila Malyutin
009a4e67b6
add py3 extension to Python
2016-11-12 06:11:39 +03:00
Arfon Smith
faaa4470af
Merge pull request #3297 from github/bye-bye-github
...
Not going to be staff for much longer.
2016-11-03 20:32:28 -04:00
Arfon Smith
2a320cb988
Adding new GitHub staff
2016-11-03 20:22:21 -04:00
Arfon Smith
74931d1bd5
Merge branch 'master' into bye-bye-github
2016-11-03 20:09:02 -04:00
Arfon Smith
3ca93a84b9
Merge pull request #3315 from github/cut-release-v4.8.17
...
v4.8.17 release PR
2016-11-02 15:20:00 -04:00
Arfon Smith
aa27f18ea6
Bumping version to v4.8.17
2016-11-02 13:33:16 -04:00
Arfon Smith
d3e2ea3f71
Grammar updates
2016-11-02 13:25:50 -04:00
Arfon Smith
53aa1209ab
Merge pull request #3314 from github/coq-kiq
...
Replace GPL-licensed Coq samples
v4.8.17
2016-11-02 13:13:44 -04:00
Arfon Smith
b2a486fed2
Merge pull request #3312 from sanssecours/ebnf
...
Add Support for EBNF
2016-11-02 13:07:34 -04:00
Alhadis
4f1e5c34b1
Add permissive-licensed Coq samples
...
BSD-2-Clause: https://github.com/jscert/jscert
* JSCorrectness.v
* JSInterpreterExtraction.v
* JSNumber.v
* JSPrettyInterm.v
MIT/Expat: https://github.com/clarus/coq-atm
* Computation.v
* Main.v
* Spec.v
2016-11-03 02:50:54 +11:00
Alhadis
85c9833081
Delete GPL2.1-licensed Coq samples
...
These files are modified variants of the ones included in Coq's standard
distribution. The original materials feature the GPL 2.1 license in each
file's header, which was suspiciously removed from Linguist's samples.
https://github.com/coq/coq/tree/trunk/theories
Basics.v is a different file to that found in Coq's distro, but is vague
in origin and being removed to err on the side of caution. The remaining
samples are from a MIT-licensed online course by Software Foundations:
https://www.cis.upenn.edu/~bcpierce/sf/current/
References: github/linguist#3313
2016-11-03 02:32:23 +11:00
René Schwaiger
33899b9d6b
Add support for EBNF
...
Extended Backus–Naur form ([EBNF][]) is a metalanguage used to specify
language grammars.
[EBNF]: https://en.wikipedia.org/wiki/Extended_Backus–Naur_form
2016-11-02 13:50:30 +01:00
Arfon Smith
417239004a
Merge pull request #3311 from sanssecours/abnf
...
Add Support for ABNF
2016-11-02 08:33:47 -04:00
René Schwaiger
6a1423d28f
Add support for ABNF
...
Augmented Backus–Naur form ([ABNF][]) is a metalanguage used to specify
language grammars.
[ABNF]: https://en.wikipedia.org/wiki/Augmented_Backus–Naur_form
2016-11-02 12:52:16 +01:00
Arfon Smith
96a23ce388
Merge pull request #3092 from pchaigno/python-console
...
Support for Python console
2016-11-01 07:18:18 -04:00