Skip to content

Commit

Permalink
新增:为部分符号增加高亮
Browse files Browse the repository at this point in the history
  • Loading branch information
guobao2333 committed Sep 21, 2024
1 parent 931a1ab commit 39b8409
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mtsx/builtin/JavaScript.mtsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,14 @@
{match: /\basync(?=\s+function\b)/, 0: "keyword"}
{match: keywordsToRegex(
"break case catch class const continue debugger default delete do else enum export async await"
"extends false finally for function if implements import instanceof interface let"
"extends false finally for function if implements import instanceof interface let debugger"
"new null package private protected public return static super switch this with"
"throw true try typeof var void while yield function of import in from as"
), 0: "keyword"
}
{match: keywordsToRegex("Date Function Array String Math BigInt Set Object console globalThis"),0:"namespace"}
{match: keywordsToRegex("prototype Infinity NaN undefined"),0:"variable"}
{match: keywordsToRegex("JSON Date Function Symbol RegExp Array String Number Boolean Math BigInt Map Set Object WeakMap WeakSet console globalThis"),0:"namespace"}
{match: keywordsToRegex("prototype Infinity NaN undefined"),0:"operator"}
{match: keywordsToRegex("=> === !== ..."),0:"label"}
{match: keywordsToRegex("Error AggregateError EvalError RangeError ReferenceError SyntaxError TypeError URIError InternalError"),0:"error"}
]
codeFormatter: #BUILT_IN_JS_FORMATTER#
Expand Down

0 comments on commit 39b8409

Please sign in to comment.