morrySnow commented on code in PR #39590: URL: https://github.com/apache/doris/pull/39590#discussion_r1722625134
########## fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisLexer.g4: ########## @@ -703,11 +688,11 @@ SIMPLE_COMMENT ; BRACKETED_COMMENT - : '/*' {!isHint()}? ( BRACKETED_COMMENT | . )*? ('*/' | {markUnclosedComment();} EOF) -> channel(HIDDEN) + : COMMENT_START ( BRACKETED_COMMENT | . )*? ('*/' | {markUnclosedComment();} EOF) -> channel(HIDDEN) Review Comment: ```suggestion : COMMENT_START ( BRACKETED_COMMENT | HINT_WITH_CHANNEL | . )*? ('*/' | {markUnclosedComment();} EOF) -> channel(HIDDEN) ``` ########## fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisLexer.g4: ########## @@ -624,6 +608,7 @@ COLON: ':'; ARROW: '->'; HINT_START: '/*+'; HINT_END: '*/'; +COMMENT_START: '/*'; Review Comment: add to non-reserved key word ########## fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisLexer.g4: ########## @@ -703,11 +688,11 @@ SIMPLE_COMMENT ; BRACKETED_COMMENT - : '/*' {!isHint()}? ( BRACKETED_COMMENT | . )*? ('*/' | {markUnclosedComment();} EOF) -> channel(HIDDEN) + : COMMENT_START ( BRACKETED_COMMENT | . )*? ('*/' | {markUnclosedComment();} EOF) -> channel(HIDDEN) ; HINT_WITH_CHANNEL - : {isChannel2()}? HINT_START .*? HINT_END -> channel(2) + : HINT_START {isChannel2()}? .*? HINT_END -> channel(2) Review Comment: ```suggestion : HINT_START {isChannel2()}? ( BRACKETED_COMMENT | HINT_WITH_CHANNEL | . )*? HINT_END -> channel(2) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org