diff options
| author | wzy <32936898+Freed-Wu@users.noreply.github.com> | 2024-02-20 03:26:32 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-19 14:26:32 -0500 |
| commit | e04ce8bcec4dec3551d7ec4fa6d737d183433bfd (patch) | |
| tree | 801bc090977881e737ddf76bd4f64fb396f4916c /queries | |
| parent | ci: simplify cache key (diff) | |
| download | nvim-treesitter-e04ce8bcec4dec3551d7ec4fa6d737d183433bfd.tar nvim-treesitter-e04ce8bcec4dec3551d7ec4fa6d737d183433bfd.tar.gz nvim-treesitter-e04ce8bcec4dec3551d7ec4fa6d737d183433bfd.tar.bz2 nvim-treesitter-e04ce8bcec4dec3551d7ec4fa6d737d183433bfd.tar.lz nvim-treesitter-e04ce8bcec4dec3551d7ec4fa6d737d183433bfd.tar.xz nvim-treesitter-e04ce8bcec4dec3551d7ec4fa6d737d183433bfd.tar.zst nvim-treesitter-e04ce8bcec4dec3551d7ec4fa6d737d183433bfd.zip | |
feat: add tmux parser
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/tmux/highlights.scm | 52 | ||||
| -rw-r--r-- | queries/tmux/injections.scm | 5 |
2 files changed, 57 insertions, 0 deletions
diff --git a/queries/tmux/highlights.scm b/queries/tmux/highlights.scm new file mode 100644 index 000000000..50da7d7d8 --- /dev/null +++ b/queries/tmux/highlights.scm @@ -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 diff --git a/queries/tmux/injections.scm b/queries/tmux/injections.scm new file mode 100644 index 000000000..5bf6e27d2 --- /dev/null +++ b/queries/tmux/injections.scm @@ -0,0 +1,5 @@ +((shell) @injection.content + (#set! injection.language "bash")) + +((comment) @injection.content + (#set! injection.language "comment")) |
