feat: add strace

This commit is contained in:
Amaan Qureshi 2023-08-20 04:33:33 -04:00
parent 43b2153d26
commit a185f8ebae
5 changed files with 68 additions and 0 deletions

View file

@ -345,6 +345,7 @@ We are looking for maintainers to add more parsers and to write query files for
- [x] [sql](https://github.com/derekstride/tree-sitter-sql) (maintained by @derekstride)
- [x] [squirrel](https://github.com/amaanq/tree-sitter-squirrel) (maintained by @amaanq)
- [x] [starlark](https://github.com/amaanq/tree-sitter-starlark) (maintained by @amaanq)
- [x] [strace](https://github.com/sigmaSd/tree-sitter-strace) (maintained by @amaanq)
- [x] [supercollider](https://github.com/madskjeldgaard/tree-sitter-supercollider) (maintained by @madskjeldgaard)
- [x] [surface](https://github.com/connorlay/tree-sitter-surface) (maintained by @connorlay)
- [x] [svelte](https://github.com/Himujjal/tree-sitter-svelte) (maintained by @elianiva)

View file

@ -515,6 +515,9 @@
"starlark": {
"revision": "c45ce2b39062bbd12ea1c210bd200db250efb24a"
},
"strace": {
"revision": "ef4a74c43565572db9c06596d99ccb0210db13e5"
},
"supercollider": {
"revision": "3b35bd0fded4423c8fb30e9585c7bacbcd0e8095"
},

View file

@ -1522,6 +1522,14 @@ list.starlark = {
maintainers = { "@amaanq" },
}
list.strace = {
install_info = {
url = "https://github.com/sigmaSd/tree-sitter-strace",
files = { "src/parser.c" },
},
maintainers = { "@amaanq" },
}
list.supercollider = {
install_info = {
url = "https://github.com/madskjeldgaard/tree-sitter-supercollider",

View file

@ -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

View file

@ -0,0 +1,2 @@
((comment) @injection.language
(#set! @injection.language "comment"))