Skip to content

Commit 9762708

Browse files
Add gdscript support (upgrade tree-sitter-wasms to 0.4.0) (#112)
* Start gdscript support * Fix parser loc snafu; increment plugin ver For some inscrutable reason, the upgrade to tree-sitter-wasms 0.4.0 causes this project's buildscripts to put the parsers in `parsers/out/` instead of just `parsers/`. The root path to where the parsers are located has been changed in `src/extension.ts` to account for this... it could probably change again, though. yarn pls * Update whitespace as suggested Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com> * Update extension.ts Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com> --------- Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
1 parent d5afd91 commit 9762708

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "parse-tree",
33
"displayName": "Parse tree",
44
"description": "Access document syntax using tree-sitter",
5-
"version": "0.38.0",
5+
"version": "0.39.0",
66
"publisher": "pokey",
77
"repository": {
88
"type": "git",
@@ -31,6 +31,7 @@
3131
"onLanguage:dart",
3232
"onLanguage:elixir",
3333
"onLanguage:elm",
34+
"onLanguage:gdscript",
3435
"onLanguage:gleam",
3536
"onLanguage:go",
3637
"onLanguage:haskell",
@@ -87,7 +88,7 @@
8788
"publish": "vsce publish patch"
8889
},
8990
"devDependencies": {
90-
"@cursorless/tree-sitter-wasms": "0.3.0",
91+
"@cursorless/tree-sitter-wasms": "0.4.0",
9192
"@types/mocha": "^2.2.42",
9293
"@types/node": "^8.10.25",
9394
"@types/vscode": "~1.58.0",

src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const languages: {
2323
dart: { module: "tree-sitter-dart" },
2424
elm: { module: "tree-sitter-elm" },
2525
elixir: { module: "tree-sitter-elixir" },
26+
gdscript: { module: "tree-sitter-gdscript" },
2627
gleam: { module: "tree-sitter-gleam" },
2728
go: { module: "tree-sitter-go" },
2829
haskell: { module: "tree-sitter-haskell" },

0 commit comments

Comments
 (0)