on master help sign in
add strace highlighting (#7928)
cbfe8eesigmaSd
book/src/generated/lang-support.md+1
@@ -145,6 +145,7 @@
145| sql | ✓ | | | |
145| sql | ✓ | | | |
146| sshclientconfig | ✓ | | | |
146| sshclientconfig | ✓ | | | |
147| starlark | ✓ | ✓ | | |
147| starlark | ✓ | ✓ | | |
148+| strace | ✓ | | | |
148| svelte | ✓ | | ✓ | `svelteserver` |
149| svelte | ✓ | | ✓ | `svelteserver` |
149| sway | ✓ | ✓ | ✓ | `forc` |
150| sway | ✓ | ✓ | ✓ | `forc` |
150| swift | ✓ | | | `sourcekit-lsp` |
151| swift | ✓ | | | `sourcekit-lsp` |
languages.toml+10
@@ -2783,3 +2783,13 @@ auto-format = true
2783[[grammar]]
2783[[grammar]]
2784name = "todotxt"
2784name = "todotxt"
2785source = { git = "https://github.com/arnarg/tree-sitter-todotxt", rev = "0207f6a4ab6aeafc4b091914d31d8235049a2578" }
2785source = { 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