diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-08-20 04:33:33 -0400 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-08-20 14:52:06 -0400 |
| commit | a185f8ebae9006b181e83f6569df68e7ff8aeb80 (patch) | |
| tree | eb2aeec00c5efe7ec2c82c958d82829a8ddb7fb8 /queries/strace | |
| parent | Update parsers: arduino, bash, julia, rust, wing (diff) | |
| download | nvim-treesitter-a185f8ebae9006b181e83f6569df68e7ff8aeb80.tar nvim-treesitter-a185f8ebae9006b181e83f6569df68e7ff8aeb80.tar.gz nvim-treesitter-a185f8ebae9006b181e83f6569df68e7ff8aeb80.tar.bz2 nvim-treesitter-a185f8ebae9006b181e83f6569df68e7ff8aeb80.tar.lz nvim-treesitter-a185f8ebae9006b181e83f6569df68e7ff8aeb80.tar.xz nvim-treesitter-a185f8ebae9006b181e83f6569df68e7ff8aeb80.tar.zst nvim-treesitter-a185f8ebae9006b181e83f6569df68e7ff8aeb80.zip | |
feat: add strace
Diffstat (limited to 'queries/strace')
| -rw-r--r-- | queries/strace/highlights.scm | 54 | ||||
| -rw-r--r-- | queries/strace/injections.scm | 2 |
2 files changed, 56 insertions, 0 deletions
diff --git a/queries/strace/highlights.scm b/queries/strace/highlights.scm new file mode 100644 index 000000000..fff706f01 --- /dev/null +++ b/queries/strace/highlights.scm @@ -0,0 +1,54 @@ +[ + "killed" + "by" + "exited" + "with" + "<unfinished ...>" + "<..." + "resumed>" +] @keyword + +[ + (errorName) + (errorDescription) +] @exception + +(syscall) @function.builtin + +; Literals + +(integer) @number + +(pointer) @number.special + +(value) @label + +(string) @string + +[ + "=" + "|" + "*" + "&&" + "==" +] @operator + +; Punctuation + +[ + "+++" + "---" + "..." + "~" +] @punctuation.special + +[ "(" ")" "[" "]" ] @punctuation.bracket + +[ + "," + "=>" +] @punctuation.delimiter + +(comment) @comment + +(ERROR) @error diff --git a/queries/strace/injections.scm b/queries/strace/injections.scm new file mode 100644 index 000000000..2659fdc47 --- /dev/null +++ b/queries/strace/injections.scm @@ -0,0 +1,2 @@ +((comment) @injection.language + (#set! @injection.language "comment")) |
