Skip to content

Commit c72adb3

Browse files
authored
Add Zig support (#119)
1 parent 83017a4 commit c72adb3

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 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.46.0",
5+
"version": "0.47.0",
66
"publisher": "pokey",
77
"repository": {
88
"type": "git",
@@ -69,7 +69,8 @@
6969
"onLanguage:typescript",
7070
"onLanguage:typescriptreact",
7171
"onLanguage:xml",
72-
"onLanguage:yaml"
72+
"onLanguage:yaml",
73+
"onLanguage:zig"
7374
],
7475
"main": "./out/extension.js",
7576
"capabilities": {
@@ -89,7 +90,7 @@
8990
"lint": "eslint src && prettier --check ."
9091
},
9192
"devDependencies": {
92-
"@cursorless/tree-sitter-wasms": "0.6.0",
93+
"@cursorless/tree-sitter-wasms": "0.7.0",
9394
"@eslint/js": "^9.31.0",
9495
"@types/node": "^24.10.1",
9596
"@types/semver": "^7.3.12",

src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const languages: Record<string, Language | undefined> = {
6262
typescriptreact: { module: "tree-sitter-tsx" },
6363
xml: { module: "tree-sitter-xml" },
6464
yaml: { module: "tree-sitter-yaml" },
65+
zig: { module: "tree-sitter-zig" },
6566
};
6667

6768
// For some reason this crashes if we put it inside activate

0 commit comments

Comments
 (0)