Граф коммитов

6619 Коммитов

Автор SHA1 Сообщение Дата
Colin Seymour 71a100d9bf
Add support for the lean comment format to the tokenizer (#6625)
* Add support for lean comments

* Update tests

* Cater for another scenario

* Add another example

* Update test/test_tokenizer.rb

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>

---------

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
2023-12-11 11:58:48 +00:00
Giles Thompson 36052b7c32
Add Glimmer JS language (#6630)
* chore: add Glimmer JS to languages

* chore: add vsc-ember-syntax grammar

* chore: add Glimmer JS samples

* chore: run script/update-ids

* fix: run script/sort-submodules

* chore: pull updated vsc-ember-syntax submodule

* chore: run script/add-grammar --replace vsc-ember-syntax https://github.com/lifeart/vsc-ember-syntax

* fix: run script/sort-submodules
2023-12-08 09:09:38 +00:00
Colin Seymour c0da81e393
Revert "Add Glimmer JS language" (#6626)
Revert "Add Glimmer JS language (#6578)"

This reverts commit a4e2bf92dc.
2023-12-06 16:12:24 +00:00
Giles Thompson a4e2bf92dc
Add Glimmer JS language (#6578)
* chore: add Glimmer JS to languages

* chore: add vsc-ember-syntax grammar

* chore: add Glimmer JS samples

* chore: run script/update-ids

* fix: run script/sort-submodules
2023-12-06 15:13:51 +00:00
JJW 6c4c9c1b81
Add Praat scripting language (#6620)
* Add Praat scripting language

* Remove uncommon Praat file extensions

* Remove unsupported shebang config for Praat

* Properly install language files for Praat

* Replace Praat tmLanguage with upstream version

* Remove Praat-tmLanguage

* Fix typo in praat samples
2023-12-06 15:12:20 +00:00
Colin Seymour 2a527e103e
Address CodeQL security alerts (#6609)
* Use File for open or read

* Empty commit to test a trigger

* Improve regexes to address polynomial security alerts
2023-12-05 09:46:23 +00:00
Dov Alperin 4207d7e652
Add support for EdgeQL languages (#5780)
* Add support for edgeql languages

https://www.edgedb.com/docs/edgeql/index

* Correct order

* Fix order

---------

Co-authored-by: Colin Seymour <colin@github.com>
2023-12-05 08:35:06 +00:00
Florian Loitsch b145c71c5e
Add Toit language (#6419)
* Add Toit language.

* Move Toit section to correct place.

* Update README.md

---------

Co-authored-by: Colin Seymour <colin@github.com>
2023-12-05 08:32:15 +00:00
Varun Gandhi 77d7f83dd3
Fix group name casing: prolog -> Prolog (#6615) 2023-12-05 08:06:35 +00:00
vvvv-vvvv 09d9842ef0
Change DM grammar source (#6605)
Change DM grammar
2023-12-05 08:06:13 +00:00
Jacob Bandes-Storch f4c35bf84a
Replace Swift grammar (#6603)
* Replace Swift grammar

* update grammar for bug fix

* update license file
2023-12-05 08:05:55 +00:00
Spenser Black f905c58cfa
Register `deno.lock` as JSON (#6590) 2023-12-05 08:05:36 +00:00
Ashutosh Narkar c65338079e
Replace Open Policy Agent grammar (#6575)
* Replace Open Policy Agent grammar

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>

* Update grammar

* Update license

---------

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
Co-authored-by: Colin Seymour <colin@github.com>
2023-12-05 08:05:20 +00:00
BobDotCom e9a966c851
Add ace_mode for Nasal (#6563) 2023-12-05 08:04:57 +00:00
Martin Leduc 9e11555c42
Ungroup Git Attributes and Ignore List from INI (#6552)
Ungroup Git Attributes and Ignore List
2023-12-05 08:04:40 +00:00
Sophie Dankel 7ef9368d13
Update color for Sway (#6498)
* Update color for Sway

* Update lib/linguist/languages.yml
2023-12-05 08:04:18 +00:00
Colin Seymour 7ca3799b8b
Release v7.27.0 (#6540)
* Update grammars

* Update cached licenses

* v7.27.0

* Update grammars

* Reduce error count

* Update cached licenses
2023-09-13 10:26:06 +01:00
Colin Seymour 3daa03314a
Revert "Use ghcr.io for grammar compiler docker container" (#6546)
Revert "Use ghcr.io for grammar compiler docker container (#6322)"

This reverts commit fd7982704b.
2023-09-13 10:14:48 +01:00
Colin Seymour 29e811b5bb
Add Gradle Kotlin DSL (#6541) 2023-09-13 09:47:56 +01:00
Colin Seymour 6b349cfc74
Improve and document using Codespaces and Devcontainers (#6539)
* Rename file

* Add bootstrap

* Use onCreateCommand.sh

* Dcoument using codespaces and devcontainers

* Use link from GitHub UI

* Add button to README.md
2023-09-13 09:42:32 +01:00
Colin Seymour fd7982704b
Use ghcr.io for grammar compiler docker container (#6322)
Co-authored-by: John Gardner <gardnerjohng@gmail.com>
2023-09-13 09:42:16 +01:00
Grady Weyenberg 8bec00e8fb
Add language: Sweave (#6544)
* adding Sweave language and samples

* Replaced Sweave.Rnw with current version from svn.r-project.org

* adding sweave sample with Snw extension

* added color to Sweave language

* Approving and seeing licence

* Delete samples/Sweave/Sweave.Rnw

* Delete samples/Sweave/minimal.Snw

* remove .snw extension from Sweave

* setting Sweave ace_mode: tex 

Setting ace_mode to tex, since a .tex file is a valid .Rnw as well.

* Update README.md

---------

Co-authored-by: Colin Seymour <colin@github.com>
2023-09-12 08:10:08 +00:00
Michael Lohr 28aa3fca23
Add Typst (#6379)
* Add typst

* Remove .typst extension

* Add XML .typ sample

* Add .typ to XML language

* Replace typst-grammar repo

* Update typst-grammar

* Update typst-grammar

* Update typst-grammar

* Change to MIT license

* Add grammar to grammar list

* Improve URLs

* Change rule order

* Fix tests

* Update commit hash
2023-09-11 13:43:08 +00:00
Martin Leduc 2fdbac7f80
Remove redundancy in `AsciiDoc`'s regex pattern (#6537)
Remove redundancy in regex
2023-09-07 16:37:46 +01:00
Spenser Black 826cc7dbf6
Create devcontainer configuration (#6479)
* Add basic devcontainer config

* Use Dockerfile for devcontainer

This is to install additional dependencies that don't come with base
image.

* Fetch test references

These references are necessary for tests to work properly.

* Depluralize

* Add YAML VSCode extension

Most peeps will be editing the YAML files so lets ensure a better experience

* Move bootstrap to onCreateCommand

This will allow the bootstrapping to be cached in the prebuild and save users a lot of time

* Make arrays multi-line

Co-authored-by: John Gardner <gardnerjohng@gmail.com>

---------

Co-authored-by: Colin Seymour <colin@symr.io>
Co-authored-by: Colin Seymour <colin@github.com>
Co-authored-by: John Gardner <gardnerjohng@gmail.com>
2023-09-07 14:27:13 +01:00
Wladislav Artsimovich 9b634a089f
Add .vs GLSL vertex shader extension (#6536)
* Add missing GLSL vertex shader extension

* Add .vs file for https://github.com/github-linguist/linguist/pull/6536

Sample GLSL file with a `.vs` extension from Google's filament repo: https://github.com/google/filament/blob/main/shaders/src/main.vs
Licensed under Apache License 2.0

* Add another .vs file for https://github.com/github-linguist/linguist/pull/6536

From file from the https://github.com/FrostKiwi/Mirrorball/blob/main/src/shd/project.vs repo https://github.com/FrostKiwi/Mirrorball under the MIT licence.

* Update lib/linguist/languages.yml

---------

Co-authored-by: Colin Seymour <colin@github.com>
2023-09-07 10:45:20 +00:00
Eric Gallager 55cfb4961c
Add Rez (#6524)
* Add Rez

* Update heuristics.yml

add one for Rez (could use some more, though)

* Update languages.yml

add color, suggested by @uliwitness in #6524

* Update heuristics.yml

Improved Rez detection from @UliWitness

* Update languages.yml

remove `.rez` extension due to no examples of it being present; resolves review comment

* Update heuristics.yml

backslashes don't need to be escaped, apparently, so stop doubling up on them

* remove too-large Rez samples

* Create rez.tmbundle.dep.yml

I tried rerunning `scripts/grammar`, but it did some other weird stuff, so I had to stash its other changes. It left this behind, though, which is hopefully what was requested in the PR

* Update lib/linguist/heuristics.yml

* Update lib/linguist/heuristics.yml

* Update README.md

* Sort .gitmodules

* Update vendor/licenses/git_submodule/rez.tmbundle.dep.yml

---------

Co-authored-by: Colin Seymour <colin@github.com>
Co-authored-by: Colin Seymour <colin@symr.io>
2023-09-07 10:45:01 +00:00
汪心禾 ec4435f99f
Add `.code-workspace` to `JSON with Comments` (#6502) 2023-09-07 10:44:47 +00:00
Spenser Black 108fe819bc
Mark files under `htmlcov/` as generated (#6491)
* Mark files under `htmlcov/` as generated

* Update wording for htmlcov check

Co-authored-by: John Gardner <gardnerjohng@gmail.com>

* Fix reference to htmlcov method

---------

Co-authored-by: John Gardner <gardnerjohng@gmail.com>
2023-09-07 10:44:35 +00:00
Martin Leduc 073af2ef78
Cross-validation script: Add filter for extensions (#6490)
Add filter for extensions
2023-09-07 10:44:22 +00:00
Imre Kristoffer Eilertsen f36d835a91
Add `hosts` to Host file aliases (#6486)
Adding a "hosts" alias just in case
2023-09-07 10:44:08 +00:00
Julie Schwartz e3020112db
Add an entry for Bluespec's other syntax (#6476)
* Add support for the BH variant of Bluespec, alongside BSV

* Renamed Bluespec BSV to Bluespec so it can be the head of the group

* Generate a new unique ID for Bluespec BH

* Update heuristics for .bs to include Bluespec BH

* Add a fourth Bluespec BH sample

* Add Bluespec BH to the grammar index

---------

Co-authored-by: quark <quark@ubuntu2204.local>
2023-09-07 10:43:55 +00:00
Spenser Black e236e97e27
Add support for Ruby Option Lists (#6474)
* Add support for Ruby Option Lists

These files contain command-line options used by RSpec and Yard.

* Add samples for Ruby Option Lists
2023-09-07 10:43:45 +00:00
John Gardner befa56a3ef
Add `pikchr` as an alias of Pic (#6522) 2023-09-07 09:26:06 +00:00
Martin Leduc ee12e6c305
Platform agnostic line endings (#6530)
plateform agnostic line endings
2023-09-07 08:23:34 +00:00
Colin Seymour a0a6d59bdc
Harden heuristics against `Regexp::TimeoutError` errors (#6518)
* Rescue Regexp::TimeoutError errors

Ruby 3.2 allows you to set a process global `Regexp.timeout = <time>` to limit the impact of poor regex and prevent ReDoS attacks. GitHub is now enforcing a timeout so we need to be sure to play nicely.

* Replace catastrophic backreferencing regex

* Skip test if Ruby < 3.2.0

* Add back ^

* Update regex
2023-09-07 09:21:59 +01:00
Colin Seymour 916bd8f3df
Bump mocha dependency version (#6499)
Bump mocha dep version
2023-08-03 10:03:09 +01:00
Martin Leduc 5ffc61a32d
Address potential causes for "Your search did not match any code" issue when clicking a language in the stats bar (#6468)
* Update troubleshooting.md

Address potential causes for "Your search did not match any code" issue when clicking a language in the stats bar.

* Fix link

* Code search limitations + wording

* Shorten

* Add back link to go-enry
2023-08-02 19:28:57 +01:00
Colin Seymour e855ef2b6f
Update list of tree-sitter grammars (#6460) 2023-06-22 14:49:23 +01:00
Colin Seymour b5432ebc7e
Release v7.26.0 (#6449)
* Revert "Revert "Update all grammars""

This reverts commit d352058f97.

* Revert "Revert "Update cached licenses""

This reverts commit faa15dab3d.

* Revert "Revert "v7.26.0""

This reverts commit f86cdb6edf.

* Update grammars

* Update cached licenses
2023-06-19 10:23:31 +01:00
Colin Seymour d352058f97
Revert "Update all grammars"
This reverts commit 70714001b0.
2023-06-15 14:21:48 +00:00
Colin Seymour faa15dab3d
Revert "Update cached licenses"
This reverts commit 77a05eaadb.
2023-06-15 14:21:37 +00:00
Colin Seymour f86cdb6edf
Revert "v7.26.0"
This reverts commit 39b3b07ce6.
2023-06-15 14:21:25 +00:00
Colin Seymour 39b3b07ce6
v7.26.0 2023-06-15 14:19:09 +00:00
Colin Seymour 77a05eaadb
Update cached licenses 2023-06-15 14:17:52 +00:00
Colin Seymour 70714001b0
Update all grammars 2023-06-15 14:17:09 +00:00
John Gardner af34cb5e7b
Add language support for `hosts` files (#6391)
* Add support for hosts(5) files

Still incomplete; real-world usage suggests that generic filenames might
be necessary (we currently only support generic *file extensions*).

* Kludge failing test as per @lildude's recommendation

* Skip `HOSTS` when testing Hosts File's filenames

* Consider INI files as well when kludging tests

* Fix typo

* Recache license

---------

Co-authored-by: Colin Seymour <colin@github.com>
2023-06-08 00:06:52 +00:00
Colin Seymour 4696ae4f70
Add `lkml` extension to LookML (#6443)
Add lkml as primary extension for LookML
2023-06-07 11:32:50 +01:00
2b40a3acbd
Add WGSL support (#6442)
* Add WGSL support

* add sample

* rollback

* wgsl sample

* Changed grammar repository to wgsl-analyzer

* cached license

* change ace mode to text

* Sort files
2023-06-06 08:23:24 +00:00
Ash O'Farrell a480ded5b5
Update WDL's description (#6319)
* Update WDL's description

* Fix name to show Workflow Description Language rather than just wdl (in line with cwl/Common Workflow Language)
* Add two interpreters

* Update languages.yml

Revert WDL back to its more common name

* Fix alphabetical placement of WDL

* Update lib/linguist/languages.yml

they're interpreters, but they're not used in shebangs, so they get cut

Co-authored-by: Colin Seymour <colin@github.com>

* Change case of WDL dir

* Update README.md

* Fix order

* Fix order

---------

Co-authored-by: John Gardner <gardnerjohng@gmail.com>
Co-authored-by: Colin Seymour <colin@github.com>
2023-06-05 10:16:53 +00:00