Skip to content

Add GDScript Support w/ tree-sitter-gdscript #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# For generating .wasm files for parsers
# See https://www.npmjs.com/package/web-tree-sitter
LANGUAGES = agda bash c c-sharp clojure cpp css dart elm elixir gleam go haskell hcl html java javascript json julia kotlin latex lua markdown nix perl php python query ruby rust scala scss sparql swift talon tsx typescript xml yaml
LANGUAGES = agda bash c c-sharp clojure cpp css dart elm elixir gdscript gleam go haskell hcl html java javascript json julia kotlin latex lua markdown nix perl php python query ruby rust scala scss sparql swift talon tsx typescript xml yaml

# Build web-tree-sitter parsers for $(LANGUAGES)

Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"onLanguage:dart",
"onLanguage:elm",
"onLanguage:elixir",
"onLanguage:gdscript",
"onLanguage:gleam",
"onLanguage:go",
"onLanguage:haskell",
Expand Down Expand Up @@ -95,16 +96,18 @@
"@vscode/test-electron": "^2.1.3",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"tree-sitter": "^0.22.4",
"tree-sitter-agda": "github:pokey/tree-sitter-agda#e5fba6cabe8c7fc7993ced2b86704f3841215284",
"tree-sitter-bash": "github:tree-sitter/tree-sitter-bash#2fbd860f802802ca76a6661ce025b3a3bca2d3ed",
"tree-sitter-c": "github:tree-sitter/tree-sitter-c#deca017a554045b4c203e7ddff39ae64ff05e071",
"tree-sitter-c-sharp": "^0.19.0",
"tree-sitter-cli": "^0.22.6",
"tree-sitter-cli": "^0.24.6",
"tree-sitter-clojure": "github:sogaiu/tree-sitter-clojure#f4236d4da8aa92bc105d9c118746474c608e6af7",
"tree-sitter-cpp": "github:tree-sitter/tree-sitter-cpp#9d412ba7e597fe158f209da33e60f31b1f0df967",
"tree-sitter-css": "^0.19.0",
"tree-sitter-dart": "github:UserNobody14/tree-sitter-dart#9ac03bb2154316624fb4c41fe0f372a5f1597b43",
"tree-sitter-elixir": "github:elixir-lang/tree-sitter-elixir#b20eaa75565243c50be5e35e253d8beb58f45d56",
"tree-sitter-gdscript": "github:PrestonKnopp/tree-sitter-gdscript#48b49330888a4669b48619b211cc8da573827725",
"tree-sitter-gleam": "github:gleam-lang/tree-sitter-gleam#2012f294baacf30e7a62414754021284377366c6",
"tree-sitter-go": "github:tree-sitter/tree-sitter-go#bbaa67a180cfe0c943e50c55130918be8efb20bd",
"tree-sitter-haskell": "github:tree-sitter/tree-sitter-haskell#a50070d5bb5bd5c1281740a6102ecf1f4b0c4f19",
Expand Down Expand Up @@ -139,5 +142,6 @@
"jsonc-parser": "^2.1.0",
"tar": ">=4.4.2",
"web-tree-sitter": "^0.24.6"
}
},
"packageManager": "[email protected]"
}
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const languages: {
dart: { module: "tree-sitter-dart" },
elm: { module: "tree-sitter-elm" },
elixir: { module: "tree-sitter-elixir" },
gdscript: {module: "tree-sitter-gdscript"},
gleam: { module: "tree-sitter-gleam" },
go: { module: "tree-sitter-go" },
haskell: { module: "tree-sitter-haskell" },
Expand Down
33 changes: 29 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,11 @@ node-addon-api@^7.1.0:
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-7.1.0.tgz#71f609369379c08e251c558527a107107b5e0fdb"
integrity sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==

node-addon-api@^8.2.1, node-addon-api@^8.3.0:
version "8.3.0"
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-8.3.0.tgz#ec3763f18befc1cdf66d11e157ce44d5eddc0603"
integrity sha512-8VOpLHFrOQlAH+qA0ZzuGRlALRA6/LVh8QJldbrC4DY0hXoMP0l4Acq8TzFC018HztWiRqyCEj2aTWY2UvnJUg==

node-api-version@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/node-api-version/-/node-api-version-0.1.4.tgz#1ed46a485e462d55d66b5aa1fe2821720dedf080"
Expand All @@ -1526,6 +1531,11 @@ node-gyp-build@^4.8.0, node-gyp-build@^4.8.1:
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.1.tgz#976d3ad905e71b76086f4f0b0d3637fe79b6cda5"
integrity sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw==

node-gyp-build@^4.8.2, node-gyp-build@^4.8.4:
version "4.8.4"
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.4.tgz#8a70ee85464ae52327772a90d66c6077a900cfc8"
integrity sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==

node-gyp@^9.0.0:
version "9.4.1"
resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-9.4.1.tgz#8a1023e0d6766ecb52764cc3a734b36ff275e185"
Expand Down Expand Up @@ -1996,10 +2006,10 @@ tree-sitter-cli@^0.20.6:
resolved "https://registry.yarnpkg.com/tree-sitter-cli/-/tree-sitter-cli-0.20.8.tgz#06a81cea8d6d82f93d67eed7d28b6bc04a4a8916"
integrity sha512-XjTcS3wdTy/2cc/ptMLc/WRyOLECRYcMTrSWyhZnj1oGSOWbHLTklgsgRICU3cPfb0vy+oZCC33M43u6R1HSCA==

tree-sitter-cli@^0.22.6:
version "0.22.6"
resolved "https://registry.yarnpkg.com/tree-sitter-cli/-/tree-sitter-cli-0.22.6.tgz#f0542bce4095952c292d3f0300d72aeab442b765"
integrity sha512-s7mYOJXi8sIFkt/nLJSqlYZP96VmKTc3BAwIX0rrrlRxWjWuCwixFqwzxWZBQz4R8Hx01iP7z3cT3ih58BUmZQ==
tree-sitter-cli@^0.24.6:
version "0.24.6"
resolved "https://registry.yarnpkg.com/tree-sitter-cli/-/tree-sitter-cli-0.24.6.tgz#e9cedc6ce22464ac08469fffa2f508e0f8ad16cd"
integrity sha512-FJ9B1XwXt8Auq75NK/6bpeci7avXSk73OMDq4elXHPS4ue11ZFeCrH/anVN/u5BAZjWqFO9nWGLNEdpdZOg+eA==

"tree-sitter-clojure@github:sogaiu/tree-sitter-clojure#f4236d4da8aa92bc105d9c118746474c608e6af7":
version "0.0.13"
Expand Down Expand Up @@ -2032,6 +2042,13 @@ tree-sitter-css@^0.19.0:
dependencies:
nan "^2.15.0"

"tree-sitter-gdscript@github:PrestonKnopp/tree-sitter-gdscript#48b49330888a4669b48619b211cc8da573827725":
version "4.0.3"
resolved "https://codeload.github.com/PrestonKnopp/tree-sitter-gdscript/tar.gz/48b49330888a4669b48619b211cc8da573827725"
dependencies:
node-addon-api "^8.2.1"
node-gyp-build "^4.8.2"

"tree-sitter-gleam@github:gleam-lang/tree-sitter-gleam#2012f294baacf30e7a62414754021284377366c6":
version "1.0.0"
resolved "https://codeload.github.com/gleam-lang/tree-sitter-gleam/tar.gz/2012f294baacf30e7a62414754021284377366c6"
Expand Down Expand Up @@ -2217,6 +2234,14 @@ tree-sitter-sparql@^0.1.0:
node-addon-api "^8.0.0"
node-gyp-build "^4.8.0"

tree-sitter@^0.22.4:
version "0.22.4"
resolved "https://registry.yarnpkg.com/tree-sitter/-/tree-sitter-0.22.4.tgz#7d29547f663ff6f49ee8d1ac444e6fa169c72b77"
integrity sha512-usbHZP9/oxNsUY65MQUsduGRqDHQOou1cagUSwjhoSYAmSahjQDAVsh9s+SlZkn8X8+O1FULRGwHu7AFP3kjzg==
dependencies:
node-addon-api "^8.3.0"
node-gyp-build "^4.8.4"

ts-api-utils@^1.0.1:
version "1.0.3"
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331"
Expand Down