tree_sitter_bash

Constant HIGHLIGHT_QUERY

Source
pub const HIGHLIGHT_QUERY: &str = "[\n  (string)\n  (raw_string)\n  (heredoc_body)\n  (heredoc_start)\n] @string\n\n(command_name) @function\n\n(variable_name) @property\n\n[\n  \"case\"\n  \"do\"\n  \"done\"\n  \"elif\"\n  \"else\"\n  \"esac\"\n  \"export\"\n  \"fi\"\n  \"for\"\n  \"function\"\n  \"if\"\n  \"in\"\n  \"select\"\n  \"then\"\n  \"unset\"\n  \"until\"\n  \"while\"\n] @keyword\n\n(comment) @comment\n\n(function_definition name: (word) @function)\n\n(file_descriptor) @number\n\n[\n  (command_substitution)\n  (process_substitution)\n  (expansion)\n]@embedded\n\n[\n  \"$\"\n  \"&&\"\n  \">\"\n  \">>\"\n  \"<\"\n  \"|\"\n] @operator\n\n(\n  (command (_) @constant)\n  (#match? @constant \"^-\")\n)\n";
Expand description

The syntax highlighting query for this grammar.