Syntax highlighting for HelixDB's HelixQL query language in the Zed editor.
Activates on files with the .hx or .hql extension.
- Schema declarations (
N::User,E::Follows,V::Embedding) and theirFrom:/To:/Propertiesblocks QUERYdefinitions, parameters,FOR ... IN,RETURN- Graph traversal steps:
Out,In,OutE,InE,FromN,ToN,ShortestPath - Creation steps:
AddN,AddE,AddV,BatchAddV,SearchV - Filtering / control:
WHERE,EXISTS,RANGE,COUNT,UPDATE,DROP - Boolean / comparison operators:
AND,OR,GT,GTE,LT,LTE,EQ,NEQ - Primitive types:
String,Boolean,F32–F64,I8–I64,U8–U128,ID,Date - Strings, numbers, booleans,
NONE,NOW,INDEX,DEFAULT - Operators (
<-,=>,::,..,!) and brackets
No language server — this is a highlight-only extension.
- Clone this repo.
- In Zed:
cmd-shift-p→ "zed: install dev extension" → pick this directory. - Open any
.hx/.hqlfile.
Mirrors the check that zed-industries/extensions CI runs at package time:
npm i -g tree-sitter-cli # one-time
scripts/check.shEvery .scm query is compiled against the pinned grammar from extension.toml using examples/sample.hx — invalid node references fail loudly before you push.
Once merged into zed-industries/extensions, you can find it in Zed's extensions panel as HelixQL.
Built on the MIT-licensed benwoodward/tree-sitter-helixql grammar.
MIT — see LICENSE.