diff --git a/extensions/javascript/syntaxes/JavaScript.tmLanguage.json b/extensions/javascript/syntaxes/JavaScript.tmLanguage.json index 5eab3c69bd1..405006f6e29 100644 --- a/extensions/javascript/syntaxes/JavaScript.tmLanguage.json +++ b/extensions/javascript/syntaxes/JavaScript.tmLanguage.json @@ -3566,59 +3566,10 @@ "name": "variable.language.arguments.js", "match": "(? { - if (pattern.match && /\b(HTMLElement|ATTRIBUTE_NODE|stopImmediatePropagation)\b/g.test(pattern.match)) { + if (pattern.match && ( + /\b(HTMLElement|ATTRIBUTE_NODE|stopImmediatePropagation)\b/g.test(pattern.match) + || /\bJSON\b/g.test(pattern.match) + || /\bMath\b/g.test(pattern.match) + )) { return false; } + + if (pattern.name?.startsWith('support.class.error.') + || pattern.name?.startsWith('support.class.builtin.') + || pattern.name?.startsWith('support.function.') + ) { + return false; + } + return true; }); return grammar; diff --git a/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json b/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json index 5ff736e03dc..950e0afeeec 100644 --- a/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json +++ b/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json @@ -3615,59 +3615,10 @@ "name": "variable.language.arguments.ts", "match": "(?