Improve parser errors when reparsing array indices.

This commit is contained in:
Vidar Holen 2016-07-01 22:06:50 -07:00
parent 42f7479fb8
commit 7af3470a91
1 changed files with 2 additions and 2 deletions

View File

@ -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