mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
subshells: Highlight the opening parenthesis correctly. (Issue #166.)
Followup to 0d1bfbcbfa.
This commit is contained in:
parent
5a38710564
commit
9e178f9f39
2 changed files with 3 additions and 2 deletions
|
|
@ -279,8 +279,9 @@ _zsh_highlight_main_highlighter()
|
|||
style=$ZSH_HIGHLIGHT_STYLES[reserved-word]
|
||||
_zsh_highlight_main_add_region_highlight $start_pos $((start_pos + 2)) $style
|
||||
already_added=1
|
||||
elif [[ $arg == '()' ]]; then
|
||||
elif [[ $arg == '()' || $arg == $'\x28' ]]; then
|
||||
# anonymous function
|
||||
# subshell
|
||||
style=$ZSH_HIGHLIGHT_STYLES[reserved-word]
|
||||
else
|
||||
if _zsh_highlight_main_highlighter_check_path; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue