Skip to content

Commit

Permalink
syntax: fix unrecognized asignment "echo arr[i]+=rhs" [sabbrev: apply…
Browse files Browse the repository at this point in the history
… sabbrev to right-hand sides of variable assignments]
  • Loading branch information
akinomyoga committed Apr 3, 2023
1 parent 2a8e746 commit 4ed4fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core-syntax.sh
Expand Up @@ -1667,7 +1667,7 @@ function ble-syntax:bash/ctx-bracket-expression {
((_ble_syntax_attr[i++]=ctx,is_assign=1))
elif [[ $tail == ']+'* ]]; then
ble-syntax/parse/set-lookahead 2
[[ $tail == ']+=' ]] && ((_ble_syntax_attr[i]=ctx,i+=2,is_assign=1))
[[ $tail == ']+='* ]] && ((_ble_syntax_attr[i]=ctx,i+=2,is_assign=1))
fi

if [[ $is_assign ]]; then
Expand Down

0 comments on commit 4ed4fd4

Please sign in to comment.