mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat: add strace
This commit is contained in:
parent
43b2153d26
commit
a185f8ebae
5 changed files with 68 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -515,6 +515,9 @@
|
|||
"starlark": {
|
||||
"revision": "c45ce2b39062bbd12ea1c210bd200db250efb24a"
|
||||
},
|
||||
"strace": {
|
||||
"revision": "ef4a74c43565572db9c06596d99ccb0210db13e5"
|
||||
},
|
||||
"supercollider": {
|
||||
"revision": "3b35bd0fded4423c8fb30e9585c7bacbcd0e8095"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
54
queries/strace/highlights.scm
Normal file
54
queries/strace/highlights.scm
Normal 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
|
||||
2
queries/strace/injections.scm
Normal file
2
queries/strace/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.language
|
||||
(#set! @injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue