Github user dongjoon-hyun commented on the issue:

    https://github.com/apache/spark/pull/14132
  
    Hi, @hvanhovell . So far, I tried in the following way for `HINT_PREFIX`.
    Due to the prefix overlapping, `BRACKETED_COMMENT` seems to eat the HINT.
    Could you give me some advice more?
    
    ```antlr
     hint
    -    : '/*+' hintStatement '*/'
    +    : HINT_PREFIX hintStatement '*/'
         ;
     
     hintStatement
    @@ -961,12 +961,12 @@ SIMPLE_COMMENT
         : '--' ~[\r\n]* '\r'? '\n'? -> channel(HIDDEN)
         ;
     
    -BRACKETED_EMPTY_COMMENT
    -    : '/**/' -> channel(HIDDEN)
    +HINT_PREFIX
    +    : '/*+'
         ;
     
     BRACKETED_COMMENT
    -    : '/*' ~[+] .*? '*/' -> channel(HIDDEN)
    +    : '/*' .*? '*/' -> channel(HIDDEN)             <--- The original one.
         ;
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to