On 8 Jan 2016, at 08:18, Martin Kühl martin.kuehl@gmail.com wrote:
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.
Thanks Martin, that sorts it out for me. I don’t really understand why but it works so I’ll try to forget about it ;)
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.
I’ll leave the branch there for a while so people can take a look.
Thanks again!
Mike McQuaid http://mikemcquaid.com