vscode-textmate: [jade] Incorrect highlighting in strings with inline tags
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (11 by maintainers)
Commits related to this issue
- Add test for #22, remove old broken test — committed to msftrncs/vscode-textmate by alexdima 5 years ago
This is an old issue, but PR #86 would fix this. The error occurs at:
See how items 70 and 72 are the same? That is happening because a rule is getting skipped because its begin value is “” (empty), Item 72 is the first of its inner patterns, but because its blank begin rule is ignored, the other rules are not pushed away, and so the tag rule just keeps consuming the text (matching rule 68), until the end rule for the closing bracket is met.
The detail of two identical rules is what tipped me to look at the grammar closer, to catch the empty begin.
Hello, @alexandrudima and @aeschli,
I think we can close this issue? I tried to work with TextMate2 and there’s this grammar is working properly.
I see that you started updating some grammar (https://github.com/Microsoft/vscode/commit/f1672e4de75b09f15e456ec126dc669c25ba5043, https://github.com/Microsoft/vscode/commit/fbdf234775f9af8a9f99f4af571364676b1d9770 and etc.).
Well, I think I’ll be contribute to one of the implementations of Jade grammar and try to solve all my problems. Later I’ll create the issue in VS Code repository with request to update Jade grammar.