Initial tree-sitter grammar for Dgraph DQL

Skeleton grammar supporting blocks, comments, strings, numbers,
and identifiers. Full DQL keyword support planned for Phase 2.
This commit is contained in:
2026-02-04 15:17:47 +03:00
commit f249538fdd
13 changed files with 1623 additions and 0 deletions

35
tree-sitter.json Normal file
View File

@@ -0,0 +1,35 @@
{
"grammars": [
{
"name": "dql",
"camelcase": "dql",
"scope": "source.dql",
"path": ".",
"file-types": [
"dql",
"dgraph"
]
}
],
"metadata": {
"version": "0.0.1",
"license": "MIT",
"description": "Tree-sitter grammar for Dgraph DQL",
"authors": [
{
"name": "idchlife"
}
],
"links": {
"repository": "https://sevastopol.overwatch.su/idchlife/zed-tree-sitter-dql"
}
},
"bindings": {
"c": true,
"node": false,
"rust": false,
"go": false,
"python": false,
"swift": false
}
}