on master help sign in
add strace highlighting (#7928)

* feat: add strace tree sitter * f

commitcbfe8eef894e8784a9e10127cd1c800ca9b7f532 authorsigmaSd <bedisnbiba@gmail.com> dateTue 15 Aug 2023, 08:38 (3 years ago) parent090a225
3 files changed+19
book/src/generated/lang-support.md+1 languages.toml+10 runtime/queries/strace/highlights.scm+8
book/src/generated/lang-support.md+1
@@ -145,6 +145,7 @@
145145| sql | ✓ | | | |
146146| sshclientconfig | ✓ | | | |
147147| starlark | ✓ | ✓ | | |
148+| strace | ✓ | | | |
148149| svelte | ✓ | | ✓ | `svelteserver` |
149150| sway | ✓ | ✓ | ✓ | `forc` |
150151| swift | ✓ | | | `sourcekit-lsp` |
languages.toml+10
@@ -2783,3 +2783,13 @@ auto-format = true
27832783[[grammar]]
27842784name = "todotxt"
27852785source = { git = "https://github.com/arnarg/tree-sitter-todotxt", rev = "0207f6a4ab6aeafc4b091914d31d8235049a2578" }
2786+
2787+[[language]]
2788+name = "strace"
2789+scope = "source.strace"
2790+file-types = ["strace"]
2791+roots = []
2792+
2793+[[grammar]]
2794+name = "strace"
2795+source = { git = "https://github.com/sigmaSd/tree-sitter-strace", rev = "a0f6c50ae4087a9299f055d0f30fe94fd98189a4" }
runtime/queries/strace/highlights.scmnew file+8
@@ -0,0 +1,8 @@
1+(syscall) @function
2+(integer) @constant.numeric
3+(pointer) @constant.numeric
4+(value) @label
5+(string) @string
6+(comment) @comment
7+(errorName) @error
8+(errorDescription) @error