Skip to content

Commit

Permalink
add strace highlighting (helix-editor#7928)
Browse files Browse the repository at this point in the history
* feat: add strace tree sitter

* f
  • Loading branch information
sigmaSd authored and Schuyler Mortimer committed Jul 10, 2024
1 parent 82fbf91 commit 1444d54
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
| sql || | | |
| sshclientconfig || | | |
| starlark ||| | |
| strace || | | |
| svelte || || `svelteserver` |
| sway |||| `forc` |
| swift || | | `sourcekit-lsp` |
Expand Down
10 changes: 10 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
8 changes: 8 additions & 0 deletions runtime/queries/strace/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(syscall) @function
(integer) @constant.numeric
(pointer) @constant.numeric
(value) @label
(string) @string
(comment) @comment
(errorName) @error
(errorDescription) @error

0 comments on commit 1444d54

Please sign in to comment.