
Release Notes: - Improved Bash heredoc highlighting | Zed 0.180.2 | With this PR | | --- | --- | |  |  | ```bash cat << EOT >> hello.txt hello world EOT ``` - `<<`: `operator` - `EOT`: `string`
103 lines
1.1 KiB
Scheme
103 lines
1.1 KiB
Scheme
[
|
|
(string)
|
|
(raw_string)
|
|
(heredoc_body)
|
|
(heredoc_start)
|
|
(heredoc_end)
|
|
(ansi_c_string)
|
|
(word)
|
|
] @string
|
|
|
|
(variable_name) @variable
|
|
|
|
[
|
|
"case"
|
|
"do"
|
|
"done"
|
|
"elif"
|
|
"else"
|
|
"esac"
|
|
"export"
|
|
"fi"
|
|
"for"
|
|
"function"
|
|
"if"
|
|
"in"
|
|
"select"
|
|
"then"
|
|
"unset"
|
|
"until"
|
|
"while"
|
|
"local"
|
|
"declare"
|
|
] @keyword
|
|
|
|
(comment) @comment
|
|
|
|
(function_definition name: (word) @function)
|
|
(command_name (word) @function)
|
|
|
|
[
|
|
(file_descriptor)
|
|
(number)
|
|
] @number
|
|
|
|
(regex) @string.regex
|
|
|
|
[
|
|
(command_substitution)
|
|
(process_substitution)
|
|
(expansion)
|
|
] @embedded
|
|
|
|
|
|
[
|
|
"$"
|
|
"&&"
|
|
">"
|
|
"<<"
|
|
">>"
|
|
">&"
|
|
">&-"
|
|
"<"
|
|
"|"
|
|
":"
|
|
"//"
|
|
"/"
|
|
"%"
|
|
"%%"
|
|
"#"
|
|
"##"
|
|
"="
|
|
"=="
|
|
] @operator
|
|
|
|
(test_operator) @keyword.operator
|
|
|
|
[
|
|
";"
|
|
] @punctuation.delimiter
|
|
|
|
[
|
|
"("
|
|
")"
|
|
"{"
|
|
"}"
|
|
"["
|
|
"]"
|
|
] @punctuation.bracket
|
|
|
|
(simple_expansion
|
|
"$" @punctuation.special)
|
|
(expansion
|
|
"${" @punctuation.special
|
|
"}" @punctuation.special) @embedded
|
|
|
|
(command_substitution
|
|
"$(" @punctuation.special
|
|
")" @punctuation.special)
|
|
|
|
(
|
|
(command (_) @constant)
|
|
(#match? @constant "^-")
|
|
)
|