From c43a0e9bfc78fb4d296863a06cc46ece6cbab77c Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Thu, 23 Jan 2025 00:18:43 -0500 Subject: [PATCH] feat: migrate to `tree-sitter.json` --- package.json | 13 +------------ tree-sitter.json | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 12 deletions(-) create mode 100644 tree-sitter.json diff --git a/package.json b/package.json index c5c095f..6bc45fd 100644 --- a/package.json +++ b/package.json @@ -50,16 +50,5 @@ "prettier": "^3.0.3", "tree-sitter-cli": "^0.24.1", "prebuildify": "^6.0.0" - }, - "tree-sitter": [ - { - "scope": "source.tex", - "file-types": [ - "tex", - "sty", - "cls", - "aux" - ] - } - ] + } } diff --git a/tree-sitter.json b/tree-sitter.json new file mode 100644 index 0000000..b1618a8 --- /dev/null +++ b/tree-sitter.json @@ -0,0 +1,38 @@ +{ + "grammars": [ + { + "name": "latex", + "camelcase": "Latex", + "scope": "source.tex", + "path": ".", + "file-types": [ + "tex", + "sty", + "cls", + "aux" + ] + } + ], + "metadata": { + "version": "0.4.0", + "license": "MIT", + "description": "LaTeX grammar for the tree-sitter parsing library", + "authors": [ + { + "name": "Patrick Förster", + "email": "patrick.foerster@outlook.de" + } + ], + "links": { + "repository": "git+https://github.com/latex-lsp/tree-sitter-latex.git" + } + }, + "bindings": { + "c": true, + "go": true, + "node": true, + "python": true, + "rust": true, + "swift": true + } +}