mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Remove special grammar rules for console in js/ts
Fixes #101802 These can be better handled by semantic highlighting
This commit is contained in:
@@ -3532,23 +3532,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?x)(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(console)(?:\\s*(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(\n assert|clear|count|debug|dir|error|group|groupCollapsed|groupEnd|info|log\n |profile|profileEnd|table|time|timeEnd|timeStamp|trace|warn))?\\b(?!\\$)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.class.console.js.jsx"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.accessor.js.jsx"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.accessor.optional.js.jsx"
|
||||
},
|
||||
"4": {
|
||||
"name": "support.function.console.js.jsx"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(JSON)(?:\\s*(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(parse|stringify))?\\b(?!\\$)",
|
||||
"captures": {
|
||||
|
||||
Reference in New Issue
Block a user