main: Highlight unclosed backtick subshells

This commit is contained in:
Matthew Martin
2018-01-07 22:06:39 -06:00
parent 987b743646
commit d17417ec1b
3 changed files with 23 additions and 4 deletions

View File

@@ -27,8 +27,10 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
BUFFER='echo `echo 42`'
# 42 is in the command position in a nested subshell.
BUFFER='echo `echo \`42\`` `echo 6 times 9'
expected_region_highlight=(
"6 14 back-quoted-argument"
"6 18 back-quoted-argument"
"20 34 back-quoted-argument-unclosed"
)