Skip to content

Commit

Permalink
feat: migrate to tree-sitter.json
Browse files Browse the repository at this point in the history
We now use a dedicated config file instead of a tree-sitter section in
package.json (see the docs for more info) so I migrated that for you as well.
  • Loading branch information
amaanq authored and yuja committed Oct 13, 2024
1 parent 215c4a2 commit 7c032f7
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 24 deletions.
26 changes: 2 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,5 @@
"tree-sitter-javascript": "^0.23.0",
"tree-sitter-typescript": "^0.23.0",
"prebuildify": "^6.0.1"
},
"tree-sitter": [
{
"scope": "source.qml",
"file-types": [
"qml"
],
"highlights": [
"node_modules/tree-sitter-javascript/queries/highlights.scm",
"node_modules/tree-sitter-typescript/queries/highlights.scm",
"queries/highlights.scm"
],
"locals": [
"queries/locals.scm",
"node_modules/tree-sitter-typescript/queries/locals.scm",
"node_modules/tree-sitter-javascript/queries/locals.scm"
],
"tags": [
"node_modules/tree-sitter-typescript/queries/tags.scm",
"node_modules/tree-sitter-javascript/queries/tags.scm"
]
}
]
}
}
}
48 changes: 48 additions & 0 deletions tree-sitter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"grammars": [
{
"name": "qmljs",
"camelcase": "Qmljs",
"scope": "source.qml",
"path": ".",
"file-types": [
"qml"
],
"highlights": [
"node_modules/tree-sitter-javascript/queries/highlights.scm",
"node_modules/tree-sitter-typescript/queries/highlights.scm",
"queries/highlights.scm"
],
"locals": [
"queries/locals.scm",
"node_modules/tree-sitter-typescript/queries/locals.scm",
"node_modules/tree-sitter-javascript/queries/locals.scm"
],
"tags": [
"node_modules/tree-sitter-typescript/queries/tags.scm",
"node_modules/tree-sitter-javascript/queries/tags.scm"
]
}
],
"metadata": {
"version": "0.1.2",
"license": "MIT",
"description": "QML grammar for the tree-sitter parsing library",
"authors": [
{
"name": "Yuya Nishihara"
}
],
"links": {
"repository": "git+https://github.com/yuja/tree-sitter-qmljs.git"
}
},
"bindings": {
"c": true,
"go": true,
"node": true,
"python": true,
"rust": true,
"swift": true
}
}

0 comments on commit 7c032f7

Please sign in to comment.