Remove special grammar rules for console in js/ts

Fixes #101802

These can be better handled by semantic highlighting
This commit is contained in:
Matt Bierner
2020-07-07 13:24:13 -07:00
parent 7b4c5f61c6
commit a877e0528e
7 changed files with 21 additions and 86 deletions

View File

@@ -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"
},
"2": {
"name": "punctuation.accessor.js"
},
"3": {
"name": "punctuation.accessor.optional.js"
},
"4": {
"name": "support.function.console.js"
}
}
},
{
"match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(JSON)(?:\\s*(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(parse|stringify))?\\b(?!\\$)",
"captures": {
@@ -5754,4 +5737,4 @@
"match": "\\S+"
}
}
}
}