Open
Description
Version: 3.0.10
Repro steps
- Create a highlighted MD string
- Move the closing backtick to different positions
Result
- When the closing backtick is in positions as in examples (2) and (3) below, code highlighting is disabled for the remaining TypeScript in the file.
- Code highlighting for all subsequent strings becomes Markdown, even if not marked
- Interestingly in the final example, the two incorrectly highlighted strings are also highlighted differently (one orange, one blue and italic). I didn't repro that separately from this issue though.
Expected
Code highlighting for TypeScript outside of strings should not be affected.
Example 1 (ok)

Example 2 (backtick at end of line - broken)

Example 3 (backtick after space - broken)

Example 4 (subsequent strings are incorrectly, and differently, highlighted as MD)

Metadata
Metadata
Assignees
Labels
No labels