Introduce WhenConditionAware
[yangtools.git] / yang / yang-parser-impl / src / main / antlr / YangStatementParser.g4
index 3ac195dfbe89d82bb01ddd0d15c18a3ef52615a8..9714bda7f8ceca6dc06b66c31bf95d2e9d65a4ce 100644 (file)
@@ -15,7 +15,7 @@ options{
     tokenVocab = YangStatementLexer;
 }
 
-statement : SEP? keyword SEP? (argument)? SEP? (SEMICOLON | LEFT_BRACE SEP? (statement)* SEP? RIGHT_BRACE SEP?) SEP?;
+statement : SEP* keyword SEP* (argument)? SEP* (SEMICOLON | LEFT_BRACE SEP* (statement)* SEP* RIGHT_BRACE SEP*) SEP*;
 keyword : (IDENTIFIER COLON)? IDENTIFIER;
 
-argument : STRING | IDENTIFIER | STRING (SEP? PLUS SEP? STRING)*;
\ No newline at end of file
+argument : STRING (SEP* PLUS SEP* STRING)* | IDENTIFIER;
\ No newline at end of file