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
/* regex? */
function test() {
return /"/.test('xxx"xxx');
}
console.log(test());
a = 3 /*test*/ / parseInt(/.+/.exec('3f23fg')[0]);
console.log(a);
b = 1
a = () => b
2 + (b=2), 3
b = 6
console.log(a(),b);
(b)
if (a === 1) {
b = 2
} else if (a === 2) b = 3
else b = 4
c = 1
x = a/b/gi; y = /b/gi;
if want to run in node, add a line to define b and gi, e.g. b = 1; gi = 1;
open the file in vscode; colored in red and orange:
This might not be easy to fix because of the way tmLanguage lookup works. We already had issue #3 because of which anything after comment is treated as regexp if it can match completely. Will look into what best action can be taken
Seem a fix before: microsoft/vscode#15692
But maybe a little different.
Steps to Reproduce:
js
file:if want to run in
node
, add a line to defineb
andgi
, e.g.b = 1; gi = 1;
Monarch Tokens:
The text was updated successfully, but these errors were encountered: