This is a work in progress, but it is already used by the biscuit online tooling
Tree-sitter biscuit supports biscuit datalog v3.3.
Method calls are not parsed correctly (see issue #3).
Add the following to languages.toml
(make sure the commit id is up-to date)
[[language]]
name = "biscuit"
scope = "source.biscuit"
injection-regex = "(biscuit|authorizer|block|query)"
file-types = ["bcdl", "biscuit-datalog"]
comment-token = "//"
indent = { tab-width = 4, unit = "...."}
roots = []
language-servers = []
[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'
[[grammar]]
name = "biscuit"
source = { git = "https://github.com/biscuit-auth/tree-sitter-biscuit", rev = "91923e75bc93142500349684baec30b9539bdc0b" }
Then, copy queries/highlights.scm
and queries/textobjects.scm
in queries/biscuit/
within a helix runtime directory.