Comment on custom language plugin

Hi,

I'm using following grammar rules in my .bnf file for capturing comments and block comments.

comment='regexp://.*'
block_comment='regexp:/\*(.|(\r\n|\r|\n))*?\*/'

Line comment works just fine and block comment works fine in live preview. However, when running a plugin based on this, it does greedy match and captures everything as comments from first /* to last */.

Can I get any help on this?

Thanks!

Please sign in to leave a comment.