mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-19 21:03:51 -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 =
|
||||
if isAssociative name
|
||||
then subParse pos readIndexSpan src
|
||||
else subParse pos (optional space >> readArithmeticContents) src
|
||||
then subParse pos (called "associative array index" $ readIndexSpan) src
|
||||
else subParse pos (called "arithmetic array index expression" $ optional space >> readArithmeticContents) src
|
||||
|
||||
reattachHereDocs root map =
|
||||
doTransform f root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue