X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-rfc7950%2Fsrc%2Fmain%2Fantlr%2Forg%2Fopendaylight%2Fyangtools%2Fantlrv4%2Fcode%2Fgen%2FYangStatementParser.g4;fp=yang%2Fyang-parser-rfc7950%2Fsrc%2Fmain%2Fantlr%2Forg%2Fopendaylight%2Fyangtools%2Fantlrv4%2Fcode%2Fgen%2FYangStatementParser.g4;h=eec9c62d653697d2a44d7bc31a7a443aa43baacb;hb=81a835f98f5ff12b9ed69686be588a394ca89778;hp=cbfeee38c7b5211477ff370d074508732fb5f841;hpb=381a1d278d89797818b993dd12833896a89beeb1;p=yangtools.git diff --git a/yang/yang-parser-rfc7950/src/main/antlr/org/opendaylight/yangtools/antlrv4/code/gen/YangStatementParser.g4 b/yang/yang-parser-rfc7950/src/main/antlr/org/opendaylight/yangtools/antlrv4/code/gen/YangStatementParser.g4 index cbfeee38c7..eec9c62d65 100644 --- a/yang/yang-parser-rfc7950/src/main/antlr/org/opendaylight/yangtools/antlrv4/code/gen/YangStatementParser.g4 +++ b/yang/yang-parser-rfc7950/src/main/antlr/org/opendaylight/yangtools/antlrv4/code/gen/YangStatementParser.g4 @@ -21,8 +21,9 @@ keyword : IDENTIFIER (COLON IDENTIFIER)?; // the flaky definitions of RFC6020, which allow for insane quoting as well as // exclusion of comments. We also need to allow for stitching back tokens like // PLUS/COLON, which may end up being valid identifiers. Finally we need to allow -// IDENTIFIER to be concatenated back to a string -argument : unquotedString | quotedString (SEP* PLUS SEP* quotedString)*; +// IDENTIFIER to be concatenated back to a string -- but it is common enough +// so we want to specialize it. +argument : IDENTIFIER | unquotedString | quotedString (SEP* PLUS SEP* quotedString)*; quotedString : DQUOT_START DQUOT_STRING? DQUOT_END