mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
fixup! 'main': Don't match redirection operators in command substitutions as <-> number range globs. Fixes #483.
This commit is contained in:
parent
1c4ad6b6dc
commit
e86138474e
2 changed files with 6 additions and 6 deletions
|
|
@ -822,7 +822,7 @@ _zsh_highlight_main_highlighter_highlight_argument()
|
|||
elif [[ $arg[i+1] == [*@#?-$!] ]]; then
|
||||
(( i += 1 ))
|
||||
fi;;
|
||||
[*?]*|\<[0-9]#-[0-9]#\>)
|
||||
[*?]*|\<[0-9]#-[0-9]#\>*)
|
||||
# The '<' is for the <-> globbing syntax. (This function doesn't get called on redirection tokens.)
|
||||
if $highlight_glob; then
|
||||
_zsh_highlight_main_add_region_highlight $start_pos $end_pos globbing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue