Use correct key-arg splitting
[yangtools.git] / yang / yang-parser-antlr / src / main / antlr4 / org / opendaylight / yangtools / yang / parser / antlr / YangStatementLexer.g4
index fa44dd7d0e50a84e8b472691427f27126f13f3e0..94ebabc6ed73a2be22092315d730bf3749205c70 100644 (file)
@@ -47,6 +47,7 @@ PLUS : '+' -> type(PLUS);
 LINE_COMMENT : '//' .*? '\r'? ('\n' | EOF) -> skip;
 BLOCK_COMMENT : '/*' .*? '*/' -> skip;
 
+// Note: if this changes, also update KeyStatementSupport's Splitter
 SEP: [ \n\r\t]+ -> type(SEP);
 
 // Special-cased identifier string
@@ -86,8 +87,8 @@ UQUOT_STRING :
     -> type(UQUOT_STRING);
 
 // Double/single-quoted strings. We deal with these using specialized modes.
-DQUOT_START : '"' -> pushMode(DQUOT_STRING_MODE);
-SQUOT_START : '\'' -> pushMode(SQUOT_STRING_MODE);
+DQUOT_START : '"' -> pushMode(DQUOT_STRING_MODE), skip;
+SQUOT_START : '\'' -> pushMode(SQUOT_STRING_MODE), skip;
 
 //
 // Double-quoted string lexing mode. We do not need to recognize all possible