feat(tmux)!: update parser and highlights

Breaking changes:

- Node `(variable)` was renamed to `(expr_double_quotes)`.
- Node `(variable_raw)` was renamed to `(expr_single_quotes)`.
- Node `(string)` was renamed to `(str_double_quotes)`.
- Node `(raw_string)` was renamed to `(str_single_quotes)`.
- Node `(raw_string_quote)` was removed.
This commit is contained in:
Steven Xu 2025-10-10 20:47:09 +11:00 committed by Christian Clason
parent 3ab4f2d2d2
commit de003000a2
3 changed files with 23 additions and 9 deletions

View file

@ -1,19 +1,21 @@
; Comments
(comment) @comment @spell
; General
[
(string)
(raw_string)
"'"
(str_single_quotes)
(str_double_quotes)
] @string
(int) @number
(backslash_escape) @string.escape
(path) @string.special.path
(int) @number
[
(option)
(variable_name)
(variable_name_short)
] @variable
(command_line_option) @variable.builtin
@ -21,7 +23,17 @@
((option) @variable.builtin
(#not-lua-match? @variable.builtin "^@"))
(command) @keyword
[
(if_keyword)
(elif_keyword)
(else_keyword)
(endif_keyword)
] @keyword.conditional
[
(hidden_keyword)
(command)
] @keyword
(source_file_directive
(command) @keyword.import)
@ -33,6 +45,8 @@
"=" @operator
[
";"
"';'"
","
":"
] @punctuation.delimiter