Open bantl23 opened 8 years ago
This question is a little bit old, but I encountered the same problem and I found three possible solutions:
/*
and then mess with nex internals so that it skips everything until the next */
(or when an counter reaches 0 so that recursion is possible). I didn't tried if this works and I wouln't recommend trying it./*
and */
and increase or decrease a variable(or just set it to true or false, if you don't wan't recursive comments). And in all other matches add a condition which checks if the match is within a comment, so that it gets skipped.FWIW, here's some info on single line comment matching: https://github.com/blynn/nex/issues/45
Are multiline comments possible with nex? I've been playing with nex quite a bit and I'm very impressed. However, I'm having trouble figuring out how to handle multiline comments. Can this been done with the nesting feature? I've tried but could not figure it out. Below is one thing I tired but I regex is greedy the nesting grabs the rest of the document.