diff options
Diffstat (limited to 'vrsite/assets/bash.scm')
| -rw-r--r-- | vrsite/assets/bash.scm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vrsite/assets/bash.scm b/vrsite/assets/bash.scm new file mode 100644 index 0000000..4c7926a --- /dev/null +++ b/vrsite/assets/bash.scm @@ -0,0 +1,21 @@ +; Bash highlights, from tree-sitter/tree-sitter-bash v0.25.1 +; queries/highlights.scm (MIT). Reordered so expansions stay visible inside the +; strings that contain them, and capture names mapped onto zed syntax keys. +; Upstream's @embedded captures are dropped: zed paints `embedded` as plain +; foreground, so they only cost query time. + +["$" "&&" "||" ">" ">>" "<" "|" ";" "=" "!"] @operator + +["case" "do" "done" "elif" "else" "esac" "export" "fi" "for" "function" "if" + "in" "local" "readonly" "select" "then" "unset" "until" "while"] @keyword + +[(string) (raw_string) (heredoc_body) (heredoc_start)] @string +(variable_name) @property +(file_descriptor) @number + +(command_name) @function +(function_definition name: (word) @function) +((command (_) @constant) + (#match? @constant "^-")) + +(comment) @comment |
