mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
'main': Parameter expansions may not contain assignments.
In «a="b=c"; $a», the '=' sign in the expansion of $a is not active. Therefore, prevent the expansion of $a from being considered an assignment. Update test expectations accordingly.
This commit is contained in:
parent
3558306149
commit
2f4f81cab7
3 changed files with 3 additions and 3 deletions
|
|
@ -34,5 +34,5 @@ BUFFER=$'$foobar'
|
|||
|
||||
expected_region_highlight=(
|
||||
# Used to highlight the "ba" as 'command' because the 'ls' showed through; issues #670 and #674
|
||||
'1 7 assign' # $foobar
|
||||
'1 7 unknown-token' # $foobar (not an assignment)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -34,5 +34,5 @@ BUFFER=$'$y'
|
|||
|
||||
expected_region_highlight=(
|
||||
# Used to trigger a "BUG" message on stderr - issues #670 and #674
|
||||
'1 2 assign' # $y
|
||||
'1 2 unknown-token' # $y (not an assignment)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue