Skip to content

floscom/zed-helixql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zed HelixQL

Syntax highlighting for HelixDB's HelixQL query language in the Zed editor.

Activates on files with the .hx or .hql extension.

What it highlights

  • Schema declarations (N::User, E::Follows, V::Embedding) and their From: / To: / Properties blocks
  • QUERY definitions, 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, F32F64, I8I64, U8U128, ID, Date
  • Strings, numbers, booleans, NONE, NOW, INDEX, DEFAULT
  • Operators (<-, =>, ::, .., !) and brackets

No language server — this is a highlight-only extension.

Install (dev / local)

  1. Clone this repo.
  2. In Zed: cmd-shift-p"zed: install dev extension" → pick this directory.
  3. Open any .hx / .hql file.

Validate query files locally

Mirrors the check that zed-industries/extensions CI runs at package time:

npm i -g tree-sitter-cli   # one-time
scripts/check.sh

Every .scm query is compiled against the pinned grammar from extension.toml using examples/sample.hx — invalid node references fail loudly before you push.

Install (from the extension store)

Once merged into zed-industries/extensions, you can find it in Zed's extensions panel as HelixQL.

Credits

Built on the MIT-licensed benwoodward/tree-sitter-helixql grammar.

License

MIT — see LICENSE.

About

Zed syntax highlighting for HelixDB's HelixQL query language (.hx / .hql)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors