Fix parsing of exit() call without parameters
authorunc0rr
Fri, 20 Apr 2012 23:03:20 +0400
changeset 6897 a9126661f613
parent 6896 23b38e530967
child 6898 344b0dbd9690
Fix parsing of exit() call without parameters
tools/PascalParser.hs
--- a/tools/PascalParser.hs	Fri Apr 20 22:56:56 2012 +0400
+++ b/tools/PascalParser.hs	Fri Apr 20 23:03:20 2012 +0400
@@ -598,7 +598,7 @@
 builtInFunction e = do
     name <- choice $ map (\s -> try $ caseInsensitiveString s >>= \i -> notFollowedBy alphaNum >> return i) builtin
     spaces
-    exprs <- option [] $ parens pas $ commaSep1 pas $ e
+    exprs <- option [] $ parens pas $ option [] $ commaSep1 pas $ e
     spaces
     return (name, exprs)