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:
Daniel Shahaf 2020-01-16 17:39:12 +00:00
commit 2b1eadbc60
3 changed files with 27 additions and 9 deletions

View file

@ -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
)