mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-21 19:03:11 +00:00
*highlight: More correct array assignment detection
This commit is contained in:
parent
1dcfc3c372
commit
0915653d7d
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
command) style=command;;
|
||||
hashed) style=hashed-command;;
|
||||
none) # Assign?
|
||||
if [[ $arg == [[:alpha:]_][[:alnum:]_]#(|\[*\])(|[+])=* ]] || [[ $arg == [0-9]##(|[+])=* ]]; then
|
||||
if [[ $arg == [[:alpha:]_][[:alnum:]_]#(|\[[^\]]#\])(|[+])=* ]] || [[ $arg == [0-9]##(|[+])=* ]]; then
|
||||
style=assign
|
||||
if [[ $arg[-1] == '(' ]]; then
|
||||
in_array_assignment=1
|
||||
|
|
Loading…
Reference in a new issue