How to detect multi-line comments without closing? #1719
-
Hi Langium community, I am using comment token to check if current cursor is in multi-line comment. May I know if there are existing services to detect if current cursor location is in multi-line comment? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, To addon to the comment, attaching examples here Works for these examples
Doesn't work for this
Our current code
These are the rules used for terminal for us
|
Beta Was this translation helpful? Give feedback.
-
Hey @durianwaffle, @wa8f7192, you should be able to do something like that:
and move that behind the existing |
Beta Was this translation helpful? Give feedback.
Hey @durianwaffle, @wa8f7192,
you should be able to do something like that:
and move that behind the existing
ML_COMMENT
terminal. That way you don't accidentally hide the existing comment terminal.