[TxMt] Re: TextMate grammars and nested multiline comments
Allan Odgaard
mailinglist at textmate.org
Wed Jan 7 05:34:56 UTC 2015
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.
More information about the textmate
mailing list