mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
back-dollar-quoted-argument: Highlight \uHHHH and \UHHHHHHHH escapes.
This commit is contained in:
parent
98366ade11
commit
8a43bd2cd9
2 changed files with 10 additions and 4 deletions
|
|
@ -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'
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue