mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
'main': Apply the parameter expansion logic regardless of the type
The existing check was bogus: parameter expansion doesn't depend on whether there happens to be a command literally called «$foo». This enables the parameter elision logic to kick in for words not in command position. Fixes #239.
This commit is contained in:
parent
2aca4e2c02
commit
b47387b55e
5 changed files with 47 additions and 7 deletions
|
|
@ -17,8 +17,8 @@
|
|||
highlighted as errors.
|
||||
[#651, 81267ca3130c]
|
||||
|
||||
- Support parameter elision in command position (e.g., `$foo ls` where `$foo` is unset or empty)
|
||||
[#667]
|
||||
- Support parameter elision (e.g., `cd $foo` where `$foo` is unset or empty)
|
||||
[#667, #239]
|
||||
|
||||
- Don't consider the filename in `sudo -e /path/to/file` to be a command position
|
||||
[#678]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue