mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
command word: Avoid unknown-token highlighting whilst inputting the command word.
Adds the 'command-being-input' highlight. Builds on top of the 'command-word-separator-v1' branch from PR #243.
This commit is contained in:
parent
09c4114eb9
commit
e13c86dfc2
3 changed files with 7 additions and 1 deletions
|
|
@ -27,8 +27,10 @@
|
|||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='azertyuiop'
|
||||
# Do not append to the BUFFER; the second instance tests an "at end of BUFFER" feature.
|
||||
BUFFER='azertyuiop; azertyuiop'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 10 $ZSH_HIGHLIGHT_STYLES[unknown-token]" # azertyuiop
|
||||
"13 22 $ZSH_HIGHLIGHT_STYLES[command-being-typed]" # azertyuiop, at end of buffer
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue