mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -04:00
feat: add tmux parser
This commit is contained in:
parent
5b3e9861a2
commit
e04ce8bcec
5 changed files with 69 additions and 0 deletions
52
queries/tmux/highlights.scm
Normal file
52
queries/tmux/highlights.scm
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
; Comments
|
||||
(comment) @comment @spell
|
||||
|
||||
; General
|
||||
[
|
||||
(string)
|
||||
(raw_string)
|
||||
] @string
|
||||
|
||||
(int) @number
|
||||
|
||||
(path) @string.special.path
|
||||
|
||||
[
|
||||
(option)
|
||||
(variable_name)
|
||||
] @variable
|
||||
|
||||
(command_line_option) @variable.builtin
|
||||
|
||||
((option) @variable.builtin
|
||||
(#not-lua-match? @variable.builtin "^@"))
|
||||
|
||||
(command) @keyword
|
||||
|
||||
(source_file_directive
|
||||
(command) @keyword.import)
|
||||
|
||||
(attribute) @attribute
|
||||
|
||||
(function_name) @function.call
|
||||
|
||||
"=" @operator
|
||||
|
||||
[
|
||||
","
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"#"
|
||||
"?"
|
||||
] @punctuation.special
|
||||
|
||||
[
|
||||
"#{"
|
||||
"}"
|
||||
"#["
|
||||
"]"
|
||||
"["
|
||||
"{"
|
||||
] @punctuation.bracket
|
||||
5
queries/tmux/injections.scm
Normal file
5
queries/tmux/injections.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
((shell) @injection.content
|
||||
(#set! injection.language "bash"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue