Skip to content
Discussion options

You must be logged in to vote

The objects under runtime/grammars are compiled C/C++ tree-sitter parsers. Helix uses them to parse documents and then uses the tree-sitter queries under runtime/queries to query the parsed syntax trees to perform syntax highlighting or determine textobjects or custom auto-indent behavior.

These are in the runtime directory and not compiled directly into Helix because they would bloat the Helix binary a lot and be immutable - you would need to recompile Helix in order to add new language support.

Helix can work without these but all languages effectively become plaintext (other than LSP features).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zjp-CN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants