mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-20 05:13:49 -07:00
Improve parser errors when reparsing array indices.
This commit is contained in:
parent
42f7479fb8
commit
7af3470a91
1 changed files with 2 additions and 2 deletions
|
@ -2723,8 +2723,8 @@ reparseIndices root =
|
||||||
|
|
||||||
parsed name pos src =
|
parsed name pos src =
|
||||||
if isAssociative name
|
if isAssociative name
|
||||||
then subParse pos readIndexSpan src
|
then subParse pos (called "associative array index" $ readIndexSpan) src
|
||||||
else subParse pos (optional space >> readArithmeticContents) src
|
else subParse pos (called "arithmetic array index expression" $ optional space >> readArithmeticContents) src
|
||||||
|
|
||||||
reattachHereDocs root map =
|
reattachHereDocs root map =
|
||||||
doTransform f root
|
doTransform f root
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue