Typescript syntax highlighting issue
See original GitHub issueHi! I found a syntax highlighting condition that breaks highlighting for all subsequent blocks of code. Please let me know if you need more information.
Sublime Text 3: 3.2.1 build 3207 TypeScript plugin: v3.4.1
Image:
Code:
if (something) {
// if the function param is broken onto a new line then the following block's syntax is highlighted correctly
_.each([], (item) => {
if (item) { count++; }
});
}
// here to demonstrate that syntax highlighting works as expected
if (invalid) {
let something = true;
const something = true;
this.something = true;
}
// the problematic line has to be within a block to demonstrate the issue
if (something) {
// if the function param is all in one line then the following blocks lose syntax highlighting
_.each([], (item) => { if (item) { count++; } });
// sytax highlighting still works for the current block
let something = true;
const something = true;
this.something = true;
}
// here to demonstrate that syntax highlighting does NOT work as expected
if (invalid) {
let something = true;
const something = true;
this.something = true;
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Latest version (5.0.221116) breaks syntax highlighting #43
The issue Syntax highlighting stopped working for TypeScript files after last update. v5.0.20221115: v5.0.20221116: Logs 2022-11-16 ...
Read more >Visual Studio Code syntax highlighting is not working for ...
The current version (v5.0.20221116) for JavaScript and TypeScript Nightly seems to be breaking the syntax highlighting. Downgrading ...
Read more >TypeScript syntax highlighting partially broken
Intellisense or code analysis works fine, it really is just issue with syntax highlighting. Visual Studiowindows 10.0typescriptvisual studio 15.1.2.
Read more >Typescript syntax highlighting rules | Crucible - Jira - Atlassian
bash,highlighthighlighterjac-cleanup-phase7syntax-highlighting ... Atlassian will continue to watch this issue for further updates, so please feel free to ...
Read more >[vim/vim] TypeScript syntax highlighting broken on template ...
The line thisFunctionIsShownAsLiteralButItIsntOne(); should be highlighted as a function but it is shown as a literal. The error happens in nvim ...
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 FreeTop 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
Top GitHub Comments
It definitely causes a crash in 3.3.3333 and 3.4.1. Those are the last two versions I used. If I get more information I’ll make it into a separate issue.
Done. Tested again and created issue #718.