back-dollar-quoted-argument: Highlight \uHHHH and \UHHHHHHHH escapes.

This commit is contained in:
Daniel Shahaf
2015-09-25 21:36:20 +00:00
parent 98366ade11
commit 8a43bd2cd9
2 changed files with 10 additions and 4 deletions

View File

@@ -29,10 +29,12 @@
# -------------------------------------------------------------------------------------------------
ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]=$unused_highlight
BUFFER=": \$'foo\xbar'"
BUFFER=": \$'foo\xbar\udeadbeef'"
expected_region_highlight=(
"3 7 $ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]" # $'foo
"8 11 $ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]" # \xba
"12 13 $ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]" # r'
"12 12 $ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]" # r
"13 18 $ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]" # \dead
"19 23 $ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]" # beef'
)