main: Add *-quoted-argument-unclosed styles

Closes #277.
This commit is contained in:
Matthew Martin
2017-11-15 22:38:19 -06:00
parent ff61a496b5
commit bdbe214453
5 changed files with 30 additions and 8 deletions

View File

@@ -32,6 +32,6 @@
BUFFER=": \$'\xa1"
expected_region_highlight=(
"3 4 dollar-quoted-argument" # $'
"3 4 dollar-quoted-argument-unclosed" # $'
"5 8 back-dollar-quoted-argument" # \xa1
)

View File

@@ -32,6 +32,6 @@
BUFFER=': "foo$bar'
expected_region_highlight=(
"3 6 double-quoted-argument" # "foo
"3 6 double-quoted-argument-unclosed" # "foo
"7 10 dollar-double-quoted-argument" # $bar
)

View File

@@ -27,8 +27,8 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
BUFFER=$'echo "foo1\n'
BUFFER=$'echo \'foo1\n'
expected_region_highlight=(
"6 10 double-quoted-argument" # 'foo2"'
"6 10 single-quoted-argument-unclosed" # 'foo1
)