Skip to content

sigmaSd/tree-sitter-strace

Repository files navigation

tree-sitter-strace

Developement

npm install
npm generate
npm test
npm test:update # to update tests when developpping
npx tree-sitter parse examples/* --quiet --stat

Use with helix

Starting helix 20.10, tree-sitter-strace is included by default. It triggers when a file ends with .strace, so you don't need to do the instructions below.

Instruction for helix before 23.10, add this to helix languages.toml

[[grammar]]
name = "strace"
source = {git = "https://github.com/sigmaSd/tree-sitter-strace", rev = "be6a0d14efddc8905af9473aa701bf02f9b87325"} # use latest commit

[[language]]
name = "strace"
scope = "source.strace"
file-types = ["strace"]
roots = []
hx -g fetch && hx -g build
mkdir -p ~/.config/helix/runtime/queries/strace
ln -s ~/.config/helix/runtime/grammars/sources/strace/queries/highlights.scm  ~/.config/helix/runtime/queries/strace/highlights.scm
hx test.strace # should work now

image image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published