mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
WIP: 'main': Pass parameters through the multi-word machinery, as we already do for aliases.
Fixes #674. WIP: One test fails: # commmand-parameter 1..8 ok 1 - [1,2] «$x» ok 2 - [4,13] «"argument"» ok 3 - [4,13] «"argument"» ok 4 - [14,14] «;» not ok 5 - [16,17] «$y» - expected (16 17 "precommand"), observed (16 17 "command"). ok 6 - [18,18] «;» ok 7 - [20,21] «$z» ok 8 - cardinality check
This commit is contained in:
parent
dfb917020c
commit
2b1eadbc60
3 changed files with 27 additions and 9 deletions
|
|
@ -36,7 +36,7 @@ BUFFER='$sudo_u phy1729 echo foo'
|
|||
|
||||
expected_region_highlight=(
|
||||
'1 7 precommand' # $sudo_u
|
||||
'9 15 default "issue #674"' # phy1729
|
||||
'9 15 default' # phy1729
|
||||
'18 20 command "issue #540"' # echo (not builtin)
|
||||
'22 24 default' # foo
|
||||
)
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ BUFFER='$sudo_u phy1729 ls foo'
|
|||
|
||||
expected_region_highlight=(
|
||||
'1 7 precommand' # sudo_u
|
||||
'9 15 default "issue #674"' # phy1729
|
||||
'17 18 command "issue #674"' # ls
|
||||
'9 15 default' # phy1729
|
||||
'17 18 command' # ls
|
||||
'20 22 default' # foo
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue