mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
main: Highlight backticks in double quotes
This commit is contained in:
parent
8d2955f51a
commit
f16e858f0c
2 changed files with 13 additions and 4 deletions
|
|
@ -28,9 +28,12 @@
|
|||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
# 42 is in the command position in a nested subshell.
|
||||
BUFFER='echo `echo \`42\`` `echo 6 times 9'
|
||||
BUFFER='echo `echo \`42\`` "is `echo equal` to" `echo 6 times 9'
|
||||
|
||||
expected_region_highlight=(
|
||||
"6 18 back-quoted-argument"
|
||||
"20 34 back-quoted-argument-unclosed"
|
||||
"6 18 back-quoted-argument" # `echo \`42\``
|
||||
"20 23 double-quoted-argument" # "is
|
||||
"24 35 back-quoted-argument" # `echo equal`
|
||||
"36 39 double-quoted-argument" # to"
|
||||
"41 55 back-quoted-argument-unclosed" # `echo 6 times 9
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue