Skip to content

Commit

Permalink
fixed prse arraylit a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
csaftoiu authored and csaftoiu committed Nov 22, 2009
1 parent a019979 commit b91a1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BrownPLT/JavaScript/Parser.hs
Expand Up @@ -302,7 +302,7 @@ parseVarRef:: ExpressionParser st
parseVarRef = liftM2 VarRef getPosition identifier

parseArrayLit:: ExpressionParser st
parseArrayLit = liftM2 ArrayLit getPosition (squares (parseExpression `sepBy` comma))
parseArrayLit = liftM2 ArrayLit getPosition (squares (parseExpression `sepEndBy` comma))

parseFuncExpr = do
pos <- getPosition
Expand Down

0 comments on commit b91a1f7

Please sign in to comment.