How to detect multi-line comments without closing? #1719
Answered
by
msujew
durianwaffle
asked this question in
Q&A
|
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? |
Answered by
msujew
Oct 23, 2024
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 |
0 replies
|
Hey @durianwaffle, @wa8f7192, you should be able to do something like that: and move that behind the existing |
3 replies
Answer selected by
durianwaffle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Hey @durianwaffle, @wa8f7192,
you should be able to do something like that:
and move that behind the existing
ML_COMMENTterminal. That way you don't accidentally hide the existing comment terminal.