diff --git a/crates/grammars/src/bash/highlights.scm b/crates/grammars/src/bash/highlights.scm index bc1c3b7ec1..c67b34e92c 100644 --- a/crates/grammars/src/bash/highlights.scm +++ b/crates/grammars/src/bash/highlights.scm @@ -72,6 +72,7 @@ [ "$" "&&" + "||" ">" "<<" ">>" @@ -86,8 +87,36 @@ "%%" "#" "##" + "+=" + "-=" + "*=" + "/=" + "%=" + "**=" + "<<=" + ">>=" + "&=" + "^=" + "|=" "=" + "=~" "==" + "!=" + "-o" + "-a" + "^" + "&" + "<=" + ">=" + "+" + "-" + "*" + "**" + "!" + "++" + "--" + "~" + "?" ] @operator (test_operator) @keyword.operator @@ -103,6 +132,18 @@ "]" ] @punctuation.bracket +(test_command + [ + "[[" + "]]" + ] @punctuation.bracket) + +(compound_statement + [ + "((" + "))" + ] @punctuation.bracket) + (simple_expansion "$" @punctuation.special) @@ -114,6 +155,14 @@ "$(" @punctuation.special ")" @punctuation.special) +(arithmetic_expansion + [ + "$((" + "$[" + "))" + "]" + ] @punctuation.special) + ((command (_) @constant) (#match? @constant "^-"))