[TxMt] Re: Trying to match triple-backticks

Martin Kühl martin.kuehl at gmail.com
Fri Jan 8 08:18:08 UTC 2016


On 7 January 2016 at 23:01, Martin Kühl <martin.kuehl at gmail.com> wrote:
> On 7 January 2016 at 20:52, Mike McQuaid <mike at mikemcquaid.com> wrote:
>>
>> This is the current state of my GitHub Markdown injection bundle: https://github.com/mikemcquaid/GitHub-Markdown.tmbundle/blob/fix-raw-markdown/Syntaxes/GitHub%20Markdown.tmLanguage
>
> Thanks.
> It seems like an injection issue to me.

Thinking about this more, I believe this is a bug.
The `L:` prefix seems to cause the injected begin matcher
to match even before its own end matcher can,
as you described.

The tmLanguage file Mike linked reproduces the problem,
we can remove the first two patterns to further reduce it.
Removing the `L:` prefix from injectionSelector fixes the problem.

-Martin


More information about the textmate mailing list