From 5cf30dc2edb64c8e07fb74a628b02bd27c85905a Mon Sep 17 00:00:00 2001 From: mrdgo Date: Thu, 21 Nov 2024 16:22:53 +0100 Subject: [PATCH] chore: migrate to new tree-sitter.json --- package.json | 12 +----------- tree-sitter.json | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 tree-sitter.json diff --git a/package.json b/package.json index 5c6f536..d6a2654 100644 --- a/package.json +++ b/package.json @@ -29,16 +29,6 @@ "tree-sitter-cli": "^0.22.5", "prebuildify": "^6.0.0" }, - "tree-sitter": [ - { - "scope": "source.nu", - "file-types": [ - "nu" - ], - "highlights": "queries/nu/highlights.scm", - "injections": "queries/nu/injections.scm" - } - ], "files": [ "grammar.js", "binding.gyp", @@ -47,4 +37,4 @@ "queries/*", "src/**" ] -} +} \ No newline at end of file diff --git a/tree-sitter.json b/tree-sitter.json new file mode 100644 index 0000000..9df0dd6 --- /dev/null +++ b/tree-sitter.json @@ -0,0 +1,36 @@ +{ + "grammars": [ + { + "name": "nu", + "camelcase": "Nu", + "scope": "source.nu", + "path": ".", + "file-types": [ + "nu" + ], + "highlights": "queries/nu/highlights.scm", + "injections": "queries/nu/injections.scm" + } + ], + "metadata": { + "version": "0.0.1", + "license": "MIT", + "description": "nu-lang", + "authors": [ + { + "name": "The Nushell Contributors" + } + ], + "links": { + "repository": "https://github.com/tree-sitter/tree-sitter-nu" + } + }, + "bindings": { + "c": true, + "go": true, + "node": true, + "python": true, + "rust": true, + "swift": true + } +} \ No newline at end of file