Improve parser errors when reparsing array indices.
This commit is contained in:
parent
42f7479fb8
commit
7af3470a91
|
@ -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…
Reference in New Issue