From da3c0e177ff11aebe1537a812463132d185961ba Mon Sep 17 00:00:00 2001 From: Anthony Manning-Franklin Date: Tue, 25 Nov 2025 17:51:46 +0800 Subject: [PATCH] Add Zig support --- package-lock.json | 12 ++++++------ package.json | 7 ++++--- src/extension.ts | 1 + 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0906102..a482166 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "parse-tree", - "version": "0.46.0", + "version": "0.47.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "parse-tree", - "version": "0.46.0", + "version": "0.47.0", "license": "MIT", "dependencies": { "semver": "^7.7.3", "web-tree-sitter": "^0.25.10" }, "devDependencies": { - "@cursorless/tree-sitter-wasms": "0.6.0", + "@cursorless/tree-sitter-wasms": "0.7.0", "@eslint/js": "^9.31.0", "@types/node": "^24.10.1", "@types/semver": "^7.3.12", @@ -242,9 +242,9 @@ } }, "node_modules/@cursorless/tree-sitter-wasms": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@cursorless/tree-sitter-wasms/-/tree-sitter-wasms-0.6.0.tgz", - "integrity": "sha512-eMS4AJbiLFPzFunLhuwIbF2I62sI6s6Cv85ES8zSD9uKNsiJKmGveDBLRyy9VvJGP50qXR2ZvvRlkmjdRnC7tg==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@cursorless/tree-sitter-wasms/-/tree-sitter-wasms-0.7.0.tgz", + "integrity": "sha512-yGmyFb75nmicYyXqKm0TMEydA8QF76kr/+dvBcu9eSN093CKijLYYgsg3xGU44K3lUI2Vjfec5OJ4tyaYssahA==", "dev": true, "license": "Unlicense" }, diff --git a/package.json b/package.json index bd7724f..52494b0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "parse-tree", "displayName": "Parse tree", "description": "Access document syntax using tree-sitter", - "version": "0.46.0", + "version": "0.47.0", "publisher": "pokey", "repository": { "type": "git", @@ -69,7 +69,8 @@ "onLanguage:typescript", "onLanguage:typescriptreact", "onLanguage:xml", - "onLanguage:yaml" + "onLanguage:yaml", + "onLanguage:zig" ], "main": "./out/extension.js", "capabilities": { @@ -89,7 +90,7 @@ "lint": "eslint src && prettier --check ." }, "devDependencies": { - "@cursorless/tree-sitter-wasms": "0.6.0", + "@cursorless/tree-sitter-wasms": "0.7.0", "@eslint/js": "^9.31.0", "@types/node": "^24.10.1", "@types/semver": "^7.3.12", diff --git a/src/extension.ts b/src/extension.ts index a24e016..bf24f97 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -62,6 +62,7 @@ const languages: Record = { typescriptreact: { module: "tree-sitter-tsx" }, xml: { module: "tree-sitter-xml" }, yaml: { module: "tree-sitter-yaml" }, + zig: { module: "tree-sitter-zig" }, }; // For some reason this crashes if we put it inside activate