We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b4adbd commit a59f442Copy full SHA for a59f442
highlighters/main/main-highlighter.zsh
@@ -278,6 +278,9 @@ _zsh_highlight_main_highlighter()
278
# is how [[ ... ]] is highlighted, too.
279
style=$ZSH_HIGHLIGHT_STYLES[reserved-word]
280
_zsh_highlight_main_add_region_highlight $start_pos $((start_pos + 2)) $style
281
+ if [[ $arg[-2,-1] == '))' ]]; then
282
+ _zsh_highlight_main_add_region_highlight $((end_pos - 2)) $end_pos $style
283
+ fi
284
already_added=1
285
elif [[ $arg == '()' || $arg == $'\x28' ]]; then
286
# anonymous function
highlighters/main/test-data/arithmetic-evaluation.zsh
@@ -36,4 +36,5 @@ BUFFER='(( x == 42 ))'
36
37
expected_region_highlight=(
38
"1 2 $ZSH_HIGHLIGHT_STYLES[reserved-word]" # ((
39
+ "12 13 $ZSH_HIGHLIGHT_STYLES[reserved-word]" # ))
40
)
0 commit comments