Skip to content

Commit

Permalink
Fix Broken Grammars and Update to Tree Sitter v0.24.4 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
quezo authored Nov 17, 2024
1 parent 2ba2594 commit cb3d586
Show file tree
Hide file tree
Showing 103 changed files with 1,361 additions and 1,647,513 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ import (
"context"
"fmt"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/javascript"
sitter "github.com/codepen/go-tree-sitter"
"github.com/codepen/go-tree-sitter/javascript"
)

parser := sitter.NewParser()
Expand Down Expand Up @@ -129,7 +129,7 @@ This repository provides grammars for many common languages out of the box.

But if you need support for any other language you can keep it inside your own project or publish it as a separate repository to share with the community.

See explanation on how to create a grammar for go-tree-sitter [here](https://github.com/smacker/go-tree-sitter/issues/57).
See explanation on how to create a grammar for go-tree-sitter [here](https://github.com/codepen/go-tree-sitter/issues/57).

Known external grammars:

Expand Down
184 changes: 28 additions & 156 deletions _automation/grammars.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,275 +2,167 @@
{
"language": "bash",
"url": "https://github.com/tree-sitter/tree-sitter-bash",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "v0.23.3",
"revision": "487734f87fd87118028a65a4599352fa99c9cde8",
"updateBasedOn": "tag"
},
{
"language": "c",
"url": "https://github.com/tree-sitter/tree-sitter-c",
"files": [
"parser.c"
],
"files": ["parser.c"],
"reference": "v0.23.1",
"revision": "f4c21152f1952a99f4744e8c41d3ffb8038ae78c",
"updateBasedOn": "tag"
},
{
"language": "csharp",
"url": "https://github.com/tree-sitter/tree-sitter-c-sharp",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "v0.23.1",
"revision": "362a8a41b265056592a0c3771664a21d23a71392",
"updateBasedOn": "tag"
},
{
"language": "cpp",
"url": "https://github.com/tree-sitter/tree-sitter-cpp",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "v0.23.4",
"revision": "f41e1a044c8a84ea9fa8577fdd2eab92ec96de02",
"updateBasedOn": "tag"
},
{
"language": "css",
"url": "https://github.com/tree-sitter/tree-sitter-css",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "v0.23.1",
"revision": "66b4aad81acb269e7e98b2ed4b0c7f7252b23c5e",
"updateBasedOn": "tag"
},
{
"language": "cue",
"url": "https://github.com/eonpatapon/tree-sitter-cue",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "main",
"revision": "8a5f273bfa281c66354da562f2307c2d394b6c81",
"updateBasedOn": "commit"
},
{
"language": "dockerfile",
"url": "https://github.com/camdencheek/tree-sitter-dockerfile",
"files": [
"parser.h",
"parser.c",
"scanner.c"
],
"reference": "v0.2.0",
"revision": "868e44ce378deb68aac902a9db68ff82d2299dd0",
"updateBasedOn": "tag"
},
{
"language": "elixir",
"url": "https://github.com/elixir-lang/tree-sitter-elixir",
"files": [
"parser.c",
"scanner.c"
],
"reference": "v0.3.1",
"revision": "ef124b83a3f3572b0af23db4efae3f8de06a15e1",
"updateBasedOn": "tag"
},
{
"language": "elm",
"url": "https://github.com/elm-tooling/tree-sitter-elm",
"files": [
"parser.c",
"scanner.c"
],
"reference": "v5.7.0",
"revision": "c26afd7f2316f689410a1622f1780eff054994b1",
"updateBasedOn": "tag"
},
{
"language": "golang",
"url": "https://github.com/tree-sitter/tree-sitter-go",
"files": [
"parser.c"
],
"files": ["parser.c"],
"reference": "master",
"revision": "0942d76fc517739b5d29a0e420b5e602d19c724d",
"updateBasedOn": "commit"
},
{
"language": "groovy",
"url": "https://github.com/murtaza64/tree-sitter-groovy",
"files": [
"parser.c"
],
"files": ["parser.c"],
"reference": "main",
"revision": "b53a8cc1075e056b8223b86f3bb392e0d57ae101",
"updateBasedOn": ""
},
{
"language": "hcl",
"url": "https://github.com/MichaHoffmann/tree-sitter-hcl",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "main",
"revision": "9e3ec9848f28d26845ba300fd73c740459b83e9b",
"updateBasedOn": "commit"
},
{
"language": "html",
"url": "https://github.com/tree-sitter/tree-sitter-html",
"files": [
"parser.c",
"scanner.c",
"tag.h"
],
"files": ["parser.c", "scanner.c", "tag.h"],
"reference": "v0.23.2",
"revision": "5a5ca8551a179998360b4a4ca2c0f366a35acc03",
"updateBasedOn": "tag"
},
{
"language": "java",
"url": "https://github.com/tree-sitter/tree-sitter-java",
"files": [
"parser.c"
],
"files": ["parser.c"],
"reference": "v0.23.4",
"revision": "a1bbe92a6370bb4c15386735fbda12f2b812a923",
"updateBasedOn": "tag"
},
{
"language": "javascript",
"url": "https://github.com/tree-sitter/tree-sitter-javascript",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "v0.23.1",
"revision": "3a837b6f3658ca3618f2022f8707e29739c91364",
"updateBasedOn": "tag"
},
{
"language": "kotlin",
"url": "https://github.com/fwcd/tree-sitter-kotlin",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "0.3.8",
"revision": "e1a2d5ad1f61f5740677183cd4125bb071cd2f30",
"updateBasedOn": "tag"
},
{
"language": "lua",
"url": "https://github.com/tjdevries/tree-sitter-lua",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "master",
"revision": "4932594a24f04e4ccf046919bc354272841b0077",
"updateBasedOn": "commit"
},
{
"language": "ocaml",
"url": "https://github.com/tree-sitter/tree-sitter-ocaml",
"files": [
"parser.c",
"scanner.c",
"scanner.h",
"alloc.h",
"parser.h"
],
"reference": "v0.23.2",
"revision": "26bc61c206e7820f9f804b206f7765ffc55cd039",
"updateBasedOn": "tag"
},
{
"language": "php",
"url": "https://github.com/tree-sitter/tree-sitter-php",
"files": [
"parser.c",
"scanner.c",
"scanner.h"
],
"files": ["parser.c", "scanner.c", "scanner.h"],
"reference": "v0.23.10",
"revision": "89e256dab1a990366e7931911fe144a14ffa539e",
"updateBasedOn": "tag"
},
{
"language": "pug",
"url": "https://github.com/codepen/tree-sitter-pug",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "master",
"revision": "757e95a5fbf26058e38f9beb1fd2f05c140410a7",
"updateBasedOn": ""
},
{
"language": "protobuf",
"url": "https://github.com/mitchellh/tree-sitter-proto",
"files": [
"parser.c"
],
"files": ["parser.c"],
"reference": "main",
"revision": "42d82fa18f8afe59b5fc0b16c207ee4f84cb185f",
"updateBasedOn": "commit"
},
{
"language": "python",
"url": "https://github.com/tree-sitter/tree-sitter-python",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "v0.23.4",
"revision": "6d14e44ea217bc5bb1c1804180e9818d7d1b8d91",
"updateBasedOn": "tag"
},
{
"language": "ruby",
"url": "https://github.com/tree-sitter/tree-sitter-ruby",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "v0.23.1",
"revision": "71bd32fb7607035768799732addba884a37a6210",
"updateBasedOn": "tag"
},
{
"language": "rust",
"url": "https://github.com/tree-sitter/tree-sitter-rust",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "v0.23.1",
"revision": "48eef06e8d806413d9a617f4a3f4d3168c4e5918",
"updateBasedOn": "tag"
},
{
"language": "scala",
"url": "https://github.com/tree-sitter/tree-sitter-scala",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "v0.23.3",
"revision": "28c3be045afe1e293b5ba1a74e759601e74050c3",
"updateBasedOn": "tag"
Expand All @@ -294,69 +186,49 @@
{
"language": "swift",
"url": "https://github.com/alex-pinkus/tree-sitter-swift",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "0.5.0-with-generated-files",
"revision": "57c1c6d6ffa1c44b330182d41717e6fe37430704",
"updateBasedOn": "tag"
},
{
"language": "toml",
"url": "https://github.com/ikatyang/tree-sitter-toml",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "v0.5.1",
"revision": "474fbbec27e27d76b45aeaf9191e8acb13a699e2",
"updateBasedOn": "tag"
},
{
"language": "typescript",
"url": "https://github.com/tree-sitter/tree-sitter-typescript",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "v0.23.2",
"revision": "f975a621f4e7f532fe322e13c4f79495e0a7b2e7",
"updateBasedOn": "tag"
},
{
"language": "yaml",
"url": "https://github.com/ikatyang/tree-sitter-yaml",
"files": [
"parser.c",
"scanner.cc",
"schema.generated.cc"
],
"files": ["parser.c", "scanner.cc", "schema.generated.cc"],
"reference": "v0.5.0",
"revision": "6129a83eeec7d6070b1c0567ec7ce3509ead607c",
"updateBasedOn": "tag"
},
{
"language": "markdown",
"url": "https://github.com/tree-sitter-grammars/tree-sitter-markdown",
"files": [
"parser.c",
"scanner.c"
],
"files": ["parser.c", "scanner.c"],
"reference": "v0.3.2",
"revision": "1c8dea73bc0c996d92dd9ebc30dd388716b1c5db",
"updateBasedOn": "tag"
},
{
"language": "sql",
"url": "https://github.com/DerekStride/tree-sitter-sql",
"files": [
"parser.c",
"parser.h",
"scanner.c"
],
"files": ["parser.c", "parser.h", "scanner.c"],
"reference": "gh-pages",
"revision": "6cd53892f3cb533fbb85ffc3431384583e51d26a",
"updateBasedOn": "commit"
}
]
]
Loading

0 comments on commit cb3d586

Please sign in to comment.