Skip to content

Commit

Permalink
fix: remove duplicate grammars
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 20, 2023
1 parent 9b3d091 commit 502603c
Show file tree
Hide file tree
Showing 11 changed files with 2,597 additions and 235 deletions.
82 changes: 1 addition & 81 deletions packages/tm-grammars/NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,7 @@ SPDX: Apache-2.0
limitations under the License.

=========================================================================================================
Files: bat.json, bibtex.json, c.json, clojure.json, coffee.json, cpp.json, cpp-macro.json, csharp.json, css.json, dart.json, diff.json, docker.json, fsharp.json, git-commit.json, git-rebase.json, go.json, groovy.json, handlebars.json, hlsl.json, html.json, html.json, ini.json, java.json, javascript.json, jsdoc-js.json, jsdoc-ts.json, json.json, jsonc.json, jsonl.json, jsx.json, julia.json, latex.json, less.json, lua.json, make.json, markdown.json, objective-c.json, objective-cpp.json, perl.json, php.json, powershell.json, pug.json, python.json, r.json, raku.json, rst.json, ruby.json, rust.json, scss.json, shaderlab.json, shellscript.json, sql.json, swift.json, tex.json, tsx.json, typescript.json, vb.json, xml.json, xsl.json, yaml.json
Files: bat.json, bibtex.json, c.json, clojure.json, coffee.json, cpp.json, cpp-macro.json, csharp.json, css.json, dart.json, diff.json, docker.json, fsharp.json, git-commit.json, git-rebase.json, go.json, groovy.json, handlebars.json, hlsl.json, html.json, ini.json, java.json, javascript.json, jsdoc-js.json, jsdoc-ts.json, json.json, jsonc.json, jsonl.json, jsx.json, julia.json, latex.json, less.json, lua.json, make.json, markdown.json, objective-c.json, objective-cpp.json, perl.json, php.json, powershell.json, pug.json, python.json, r.json, raku.json, rst.json, ruby.json, rust.json, scss.json, shaderlab.json, shellscript.json, sql.json, swift.json, tex.json, tsx.json, typescript.json, vb.json, xml.json, xsl.json, yaml.json
License: https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt
SPDX: MIT
---------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -1935,33 +1935,6 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
=========================================================================================================
Files: csharp.json
License: https://raw.githubusercontent.com/dotnet/csharp-tmLanguage/main/LICENSE
SPDX: MIT
---------------------------------------------------------------------------------------------------------
MIT License

Copyright (c) 2016 .NET Foundation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

=========================================================================================================
Files: csv.json
License: https://raw.githubusercontent.com/mechatroner/vscode_rainbow_csv/master/LICENSE
Expand Down Expand Up @@ -2062,32 +2035,6 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
=========================================================================================================
Files: dart.json
License: https://raw.githubusercontent.com/Dart-Code/Dart-Code/master/LICENSE
SPDX: MIT
---------------------------------------------------------------------------------------------------------
MIT License

Copyright (c) 2016 Danny Tuppeny

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Expand Down Expand Up @@ -4012,33 +3959,6 @@ The above copyright notice and this permission notice shall be included in all c

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

=========================================================================================================
Files: latex.json, tex.json
License: https://raw.githubusercontent.com/James-Yu/LaTeX-Workshop/master/LICENSE.txt
SPDX: MIT
---------------------------------------------------------------------------------------------------------
The MIT License (MIT)

Copyright (c) 2016 James Yu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

=========================================================================================================
Files: liquid.json
License: https://raw.githubusercontent.com/Shopify/liquid-tm-grammar/main/LICENSE.md
Expand Down
7 changes: 1 addition & 6 deletions packages/tm-grammars/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ import { grammars } from 'tm-grammars'
| `cpp-macro` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `cpp` `glsl` `sql` |
| `crystal` | | [crystal-lang-tools/vscode-crystal-lang](https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/fe90eda371237dc60f158fca9977e71ce0d63aae/syntaxes/crystal.json) | [MIT](https://raw.githubusercontent.com/crystal-lang-tools/vscode-crystal-lang/master/LICENSE) | `html` `sql` `css` `c` `javascript` `shellscript` |
| `csharp` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/csharp/syntaxes/csharp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | |
| `csharp` | | [dotnet/csharp-tmLanguage](https://github.com/dotnet/csharp-tmLanguage/blob/0febdc78936552b2671a034ae3c06d485c0e0a05/grammars/csharp.tmLanguage) | [MIT](https://raw.githubusercontent.com/dotnet/csharp-tmLanguage/main/LICENSE) | |
| `css` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/css/syntaxes/css.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | |
| `csv` | | [mechatroner/vscode_rainbow_csv](https://github.com/mechatroner/vscode_rainbow_csv/blob/6b53c5fb98c7a8ac97ded87046cd8302f3f88195/syntaxes/csv.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mechatroner/vscode_rainbow_csv/master/LICENSE) | |
| `cue` | | [cue-sh/vscode-cue](https://github.com/cue-sh/vscode-cue/blob/0734615a2607fe03f5d6c1816f8f7435179659fc/syntaxes/cue.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/cue-sh/vscode-cue/master/LICENSE) | |
| `cypher` | | [adam-cowley/neo4j-vscode](https://github.com/adam-cowley/neo4j-vscode/blob/b56cc6c09148ab23a31ba2f6c42e0901952e8402/cypher/cypher.tmLanguage) | [MIT](https://raw.githubusercontent.com/adam-cowley/neo4j-vscode/main/LICENSE) | |
| `d` | | [Pure-D/code-d](https://github.com/Pure-D/code-d/blob/b19258b82d40b72ac4e60497214de14a4248d4d8/syntaxes/d.json) | [MIT](https://raw.githubusercontent.com/Pure-D/code-d/master/LICENSE.md) | |
| `dart` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/dart/syntaxes/dart.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | |
| `dart` | | [Dart-Code/Dart-Code](https://github.com/Dart-Code/Dart-Code/blob/5cf2b37ec82c3b0481c11c7fed970e015e01dee6/syntaxes/dart.json) | [MIT](https://raw.githubusercontent.com/Dart-Code/Dart-Code/master/LICENSE) | |
| `dax` | | [huyza/dax-language](https://github.com/huyza/dax-language/blob/7d7a73455bae1dbe9ec6f3e969d7b7d3c146e6e4/syntaxes/dax.grammer.json) | | |
| `diff` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/diff/syntaxes/diff.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | |
| `docker` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/docker/syntaxes/docker.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | |
Expand All @@ -83,14 +81,13 @@ import { grammars } from 'tm-grammars'
| `graphql` | | [prisma-labs/vscode-graphql](https://github.com/prisma-labs/vscode-graphql/blob/66e9d69b76c237714db0e606fa7ac32fc4fa3a94/grammars/graphql.json) | [MIT](https://raw.githubusercontent.com/graphql/vscode-graphql/master/LICENSE) | `javascript` `typescript` `jsx` `tsx` |
| `groovy` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/groovy/syntaxes/groovy.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | |
| `hack` | | [slackhq/vscode-hack](https://github.com/slackhq/vscode-hack/blob/d75dd72a5d52436d208a627a2ead5423c94eb3e9/syntaxes/hack.json) | [MIT](https://raw.githubusercontent.com/slackhq/vscode-hack/master/LICENSE.md) | `html` `sql` |
| `haml` | | [karuna/haml-vscode](https://github.com/karuna/haml-vscode/blob/504875f60bcd474f17762b2daf97680476135f79/syntaxes/haml.json) | [MIT](https://raw.githubusercontent.com/karuna/haml-vscode/master/LICENSE.md) | `ruby` `javascript` `sass` `coffee` `html` `markdown` `css` |
| `haml` | | [karuna/haml-vscode](https://github.com/karuna/haml-vscode/blob/504875f60bcd474f17762b2daf97680476135f79/syntaxes/haml.json) | [MIT](https://raw.githubusercontent.com/karuna/haml-vscode/master/LICENSE.md) | `ruby` `javascript` `sass` `coffee` `markdown` `css` |
| `handlebars` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/handlebars/syntaxes/Handlebars.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `html` `css` `javascript` `yaml` |
| `haskell` | | [octref/language-haskell](https://github.com/octref/language-haskell/blob/ae87982aac2bf5cf6334c067e49c5ec8fc08b871/syntaxes/haskell.json) | [BSD-3-Clause](https://raw.githubusercontent.com/octref/language-haskell/master/LICENSE) | |
| `hcl` | | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/c98e6521755f840c5171f43682518465b691f392/syntaxes/hcl.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | |
| `hjson` | | [hjson/textmate-hjson](https://github.com/hjson/textmate-hjson/blob/196075169c9a9f9ab04c8e7423b67ea72c976237/Syntaxes/Hjson.tmLanguage) | [MIT](https://raw.githubusercontent.com/hjson/textmate-hjson/master/LICENSE) | |
| `hlsl` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/hlsl/syntaxes/hlsl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | |
| `html` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/html/syntaxes/html.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `javascript` `css` |
| `html` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/php/syntaxes/html.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `blade` `php` |
| `imba` | | [imba/imba](https://github.com/imba/imba/blob/a2cc7e9bd2cc0fb0bf08daa487b7682e92202cb0/packages/vscode-imba/syntaxes/imba.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/imba/imba/master/LICENSE) | `typescript` |
| `ini` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/ini/syntaxes/ini.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | |
| `java` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/java/syntaxes/java.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | |
Expand All @@ -111,7 +108,6 @@ import { grammars } from 'tm-grammars'
| `kotlin` | | [fwcd/vscode-kotlin](https://github.com/fwcd/vscode-kotlin/blob/c1371a435aedf8690d3c9cbbe4c42a215915630d/syntaxes/kotlin.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fwcd/vscode-kotlin/main/LICENSE) | |
| `kusto` | | [rosshamish/kuskus](https://github.com/rosshamish/kuskus/blob/02d4369268682d90a424ba6c8d7ab7d9f0a8a8af/kusto-syntax-highlighting/syntaxes/kusto.tmLanguage.json) | | |
| `latex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/latex/syntaxes/LaTeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `tex` `css` `haskell` `html` `xml` `java` `lua` `julia` `ruby` `javascript` `typescript` `python` `yaml` `rust` `scala` `gnuplot` |
| `latex` | | [James-Yu/LaTeX-Workshop](https://github.com/James-Yu/LaTeX-Workshop/blob/4b31a993af86b95f23ae258522eec9f6988f9a07/syntax/LaTeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/James-Yu/LaTeX-Workshop/master/LICENSE.txt) | `tex` `css` `haskell` `html` `xml` `java` `lua` `julia` `ruby` `javascript` `typescript` `python` `yaml` `rust` `scala` `gnuplot` |
| `less` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/less/syntaxes/less.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | |
| `liquid` | | [Shopify/liquid-tm-grammar](https://github.com/Shopify/liquid-tm-grammar/blob/20d3a4315bd4f2285358197bdf02eeca39e4c8db/grammars/liquid.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/Shopify/liquid-tm-grammar/main/LICENSE.md) | `html` `css` `json` `javascript` |
| `lisp` | | [mattn/vscode-lisp](https://github.com/mattn/vscode-lisp/blob/09f9077526364501763414f8dd3a6aeff9e69f0e/syntaxes/Lisp.tmLanguage) | [MIT](https://raw.githubusercontent.com/mattn/vscode-lisp/master/LICENSE) | |
Expand Down Expand Up @@ -180,7 +176,6 @@ import { grammars } from 'tm-grammars'
| `tasl` | | [underlay/vscode-tasl](https://github.com/underlay/vscode-tasl/blob/dde4b7c0b762c2e667584095362dd49ebfacece7/syntaxes/tasl.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/underlay/vscode-tasl/main/LICENSE) | |
| `tcl` | | [sleutho/tcl](https://github.com/sleutho/tcl/blob/f60babcf9fce7d123ffe9461d96d69439bda03fe/syntaxes/tcl.tmLanguage) | | |
| `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/latex/syntaxes/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `r` |
| `tex` | | [James-Yu/LaTeX-Workshop](https://github.com/James-Yu/LaTeX-Workshop/blob/4b31a993af86b95f23ae258522eec9f6988f9a07/syntax/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/James-Yu/LaTeX-Workshop/master/LICENSE.txt) | `r` |
| `toml` | | [textmate/toml.tmbundle](https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage) | | |
| `tsx` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c9631868cd2585d82bc5c1f00c235c09da2e37d8/extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | |
| `turtle` | | [stardog-union/stardog-vsc](https://github.com/stardog-union/stardog-vsc/blob/0ce931c26529fdaf5c6dd58d91e589bbd6944a1d/stardog-rdf-grammars/syntaxes/turtle.tmLanguage.json) | | |
Expand Down
3 changes: 0 additions & 3 deletions packages/tm-grammars/grammars/csharp.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"displayName": "C#",
"fileTypes": [
"cs"
],
"name": "csharp",
"patterns": [
{
Expand Down
5 changes: 0 additions & 5 deletions packages/tm-grammars/grammars/dart.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"displayName": "Dart",
"fileTypes": [
"dart"
],
"foldingStartMarker": "\\{\\s*$",
"foldingStopMarker": "^\\s*\\}",
"name": "dart",
"patterns": [
{
Expand Down
Loading

0 comments on commit 502603c

Please sign in to comment.