diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 10989a23c14b..1287c11ff8e3 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -145,6 +145,7 @@ | sql | ✓ | | | | | sshclientconfig | ✓ | | | | | starlark | ✓ | ✓ | | | +| strace | ✓ | | | | | svelte | ✓ | | ✓ | `svelteserver` | | sway | ✓ | ✓ | ✓ | `forc` | | swift | ✓ | | | `sourcekit-lsp` | diff --git a/languages.toml b/languages.toml index e39871e84817..1e692ac4a80c 100644 --- a/languages.toml +++ b/languages.toml @@ -2783,3 +2783,13 @@ auto-format = true [[grammar]] name = "todotxt" source = { git = "https://github.com/arnarg/tree-sitter-todotxt", rev = "0207f6a4ab6aeafc4b091914d31d8235049a2578" } + +[[language]] +name = "strace" +scope = "source.strace" +file-types = ["strace"] +roots = [] + +[[grammar]] +name = "strace" +source = { git = "https://github.com/sigmaSd/tree-sitter-strace", rev = "a0f6c50ae4087a9299f055d0f30fe94fd98189a4" } diff --git a/runtime/queries/strace/highlights.scm b/runtime/queries/strace/highlights.scm new file mode 100644 index 000000000000..4f54cb3e953f --- /dev/null +++ b/runtime/queries/strace/highlights.scm @@ -0,0 +1,8 @@ +(syscall) @function +(integer) @constant.numeric +(pointer) @constant.numeric +(value) @label +(string) @string +(comment) @comment +(errorName) @error +(errorDescription) @error