File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -460,7 +460,19 @@ stopStmt: STOP;
460460timeStmt : TIME WS ? EQ WS ? valueStmt;
461461
462462typeStmt :
463- (visibility WS )? TYPE WS ambiguousIdentifier endOfStatement typeStmt_Element* END_TYPE ;
463+ (visibility WS )? TYPE WS ambiguousIdentifier endOfStatement (typeStmt_Element|macroTypeIfThenElseStmt)* END_TYPE ;
464+
465+ macroTypeIfThenElseStmt :
466+ macroTypeIfBlockStmt macroTypeElseIfBlockStmt* macroTypeElseBlockStmt? MACRO_END_IF endOfStatement;
467+
468+ macroTypeIfBlockStmt :
469+ MACRO_IF WS ? ifConditionStmt WS THEN endOfStatement typeStmt_Element*;
470+
471+ macroTypeElseIfBlockStmt :
472+ MACRO_ELSEIF WS ? ifConditionStmt WS THEN endOfStatement typeStmt_Element*;
473+
474+ macroTypeElseBlockStmt :
475+ MACRO_ELSE endOfStatement typeStmt_Element*;
464476
465477typeStmt_Element :
466478 ambiguousIdentifier (WS ? LPAREN (WS ? subscripts)? WS ? RPAREN )? (
You can’t perform that action at this time.
0 commit comments