Skip to content

Commit a23b917

Browse files
committed
Add zig support
1 parent d1c975c commit a23b917

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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.43.0",
5+
"version": "0.44.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": {
@@ -92,7 +93,7 @@
9293
"publish": "vsce publish patch"
9394
},
9495
"devDependencies": {
95-
"@cursorless/tree-sitter-wasms": "0.6.0",
96+
"@cursorless/tree-sitter-wasms": "0.7.0",
9697
"@types/mocha": "^2.2.42",
9798
"@types/node": "^8.10.25",
9899
"@types/vscode": "~1.58.0",

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)