fix parsing of 'if'
authorunc0rr
Fri, 31 Aug 2012 22:08:29 +0200
changeset 7641 42dba3e7fed2
parent 7640 e9e6b4d740f6
child 7642 91fce82f9c6f
fix parsing of 'if'
tools/PascalParser.hs
--- a/tools/PascalParser.hs	Fri Aug 31 22:00:31 2012 +0200
+++ b/tools/PascalParser.hs	Fri Aug 31 22:08:29 2012 +0200
@@ -438,7 +438,7 @@
     return o
 
 ifBlock = do
-    try $ string "if"
+    try $ string "if" >> notFollowedBy alphaNum
     comments
     e <- expression
     comments