mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
parent
a2876fb57d
commit
2bb8f0703d
2 changed files with 51 additions and 0 deletions
|
|
@ -218,6 +218,7 @@ _zsh_highlight_highlighter_main_paint()
|
|||
# "Q" for square
|
||||
# "Y" for curly
|
||||
# "D" for do/done
|
||||
# "$" for 'end' (matches 'foreach' always; also used with cshjunkiequotes in repeat/while)
|
||||
local braces_stack
|
||||
|
||||
if (( path_dirs_was_set )); then
|
||||
|
|
@ -468,6 +469,12 @@ _zsh_highlight_highlighter_main_paint()
|
|||
('done')
|
||||
_zsh_highlight_main__stack_pop 'D' style=reserved-word
|
||||
;;
|
||||
('foreach')
|
||||
braces_stack='$'"$braces_stack"
|
||||
;;
|
||||
('end')
|
||||
_zsh_highlight_main__stack_pop '$' style=reserved-word
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
'suffix alias') style=suffix-alias;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue