Skip to content

How to detect multi-line comments without closing? #1719

Answered by msujew
durianwaffle asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @durianwaffle, @wa8f7192,

you should be able to do something like that:

hidden terminal ML_COMMENT_INCOMPLETE: /(\/\*[\s\S]*)/;

and move that behind the existing ML_COMMENT terminal. That way you don't accidentally hide the existing comment terminal.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@durianwaffle
Comment options

@durianwaffle
Comment options

@msujew
Comment options

Answer selected by durianwaffle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants