Browse Source

Fixed 'Then' after 'Else If' not allowed in parser.

Mark Sibly 9 years ago
parent
commit
e3c40f5243
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/mx2cc/parser.monkey2

+ 5 - 3
src/mx2cc/parser.monkey2

@@ -715,11 +715,13 @@ Class Parser
 
 			Try
 				If toke="elseif"
+				
 					cond=ParseExpr()
-					If block ParseEol() Else CParse( "then" )
-				Else
-					If block ParseEol()
+					CParse( "then" )
+
 				Endif
+
+				If block ParseEol()
 			
 			Catch ex:ParseEx