You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Javascript function within a function loses syntax highlighting #10567
Here is the analysis. There is definitely some sort of grammar bug in there, but it doesn't look too bad. By the end of the file, there are 7 rules on the stack (instead of the expected 1):
Activity
alexdima commentedon Aug 16, 2016
micmic0615 Can you please provide the text so we can copy-paste it.
micmic0615 commentedon Aug 16, 2016
the attached test.js file has no syntax errors but I'm losing the highlighting.
loads of long JS files in my website are also like this (lose highlights midway) even though they are running.
test.zip
wallethub-labs commentedon Aug 17, 2016
micmic0615 you can revert to 1.3.1 until this is fix. We experienced this issue too, something about a bug in OCaml grammar
alexdima commentedon Aug 29, 2016
Here is the analysis. There is definitely some sort of grammar bug in there, but it doesn't look too bad. By the end of the file, there are 7 rules on the stack (instead of the expected 1):
alexdima commentedon Aug 29, 2016
I've extracted the grammar bug to microsoft/TypeScript-TmLanguage#252
We should also bump the protection limit from 30 to some larger value. Let's track that in #9937
micmic0615 commentedon Aug 30, 2016
i don't really understand your fix logs. But since you closed it, I'm assuming a fix has been applied?
will just wait for the next update, if so. thanks!
alexdima commentedon Aug 30, 2016
micmic0615 The fix will come in the stable build with the August release, or you can get the fix now using the Insiders channel https://code.visualstudio.com/insiders
micmic0615 commentedon Aug 30, 2016
tnx!