Skip to content

Commit

Permalink
revert changes to highlights.scm and remove (expansion_flags)
Browse files Browse the repository at this point in the history
  • Loading branch information
CSergienko committed Apr 20, 2024
1 parent 82c4caa commit b5096a3
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions runtime/queries/bash/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,45 @@

(command_name) @function

(variable_name) @property
(variable_name) @variable.other.member

[
"case"
"do"
"done"
"elif"
"if"
"then"
"else"
"esac"
"export"
"elif"
"fi"
"for"
"function"
"if"
"case"
"in"
"esac"
] @keyword.control.conditional

[
"for"
"do"
"done"
"select"
"then"
"unset"
"until"
"while"
] @keyword.control.repeat

[
"declare"
"typeset"
"export"
"readonly"
"local"
"unset"
"unsetenv"
] @keyword

"function" @keyword.function

(comment) @comment

(function_definition name: (word) @function)

(file_descriptor) @number
(file_descriptor) @constant.numeric.integer

[
(command_substitution)
Expand Down

0 comments on commit b5096a3

Please sign in to comment.