Explorar o código

'Then' now optional for both one-liner and blocks Ifs.

Mark Sibly %!s(int64=9) %!d(string=hai) anos
pai
achega
8f0d48a5ae
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/mx2new/parser.monkey2

+ 3 - 1
src/mx2new/parser.monkey2

@@ -687,9 +687,11 @@ Class Parser
 			
 			cond=ParseExpr()
 			
+			CParse( "then" )
+			
 			block=CParseEol()
 			
-			If Not block CParse( "then" )
+'			If Not block CParse( "then" )
 			
 		Catch ex:ParseEx