[jade] Incorrect highlighting in strings with inline tags
See original GitHub issueIssue Analytics
- State:
- Created 7 years ago
- Comments:16 (11 by maintainers)
Top Results From Across the Web
[jade] Incorrect highlighting in strings with inline tags · Issue #22 ...
@aeschli, as I understand, this issue is related to the bug (feature) in vscode-textmate? I ask this because I can fix Jade tmLanguage...
Read more >VS Code's Jade syntax highlighting is bad - pug - Stack Overflow
The syntax highlighting is bad with the comments due to this issue with the language grammar in VS Code. include , block ,...
Read more >- Projects - Bountysource
Issues ; 1 likes. Wrong custom-elements highlighting paid out closed ; 0 likes. String-interpolation inside tag-interpolation fails to exit the tag-formatting ...
Read more >Jade Template Syntax Documentation by Example
This interactive documentation illustrates the most important features of the Jade templating language. You can play around with the examples and watch the...
Read more >Wrong syntax highlighting in TS/JS file with template strings in ...
The following construction is correctly starting the string, but not terminating it, and all the text after is written in red:
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.