'main': Permit subshells to end at command position.

Fixes #344.
This commit is contained in:
Daniel Shahaf
2016-09-25 12:06:39 +00:00
parent 2bb8f0703d
commit 4fc35362ee
2 changed files with 41 additions and 0 deletions

View File

@@ -553,6 +553,9 @@ _zsh_highlight_highlighter_main_paint()
# subshell
style=reserved-word
braces_stack='R'"$braces_stack"
elif [[ $arg == $'\x29' ]]; then
# end of subshell
_zsh_highlight_main__stack_pop 'R' style=reserved-word
else
if _zsh_highlight_main_highlighter_check_path; then
style=$REPLY