On 6 Jan 2015, at 1:17, Jens Axel Søgaard wrote:
Here is my non-working attempt:
repository: multilinecomment: begin: #| end: |# name: comment contentName: comment patterns:
- include: "#multilinecomment" name: comment
- match: ([^|]||(?=[^#]))* name: comment
I don’t understand why you have the last match rule.
Without it, it should work fine to match nested multi-line comments.