Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/ecma/highlights.scm')
| -rw-r--r-- | runtime/queries/ecma/highlights.scm | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/runtime/queries/ecma/highlights.scm b/runtime/queries/ecma/highlights.scm index dc8ce5e7..b8df07a5 100644 --- a/runtime/queries/ecma/highlights.scm +++ b/runtime/queries/ecma/highlights.scm @@ -16,8 +16,31 @@ (#match? @variable.builtin "^(arguments|module|console|window|document)$") (#is-not? local)) -((identifier) @function.builtin - (#eq? @function.builtin "require") +(call_expression + (identifier) @function.builtin + (#any-of? @function.builtin + "eval" + "fetch" + "isFinite" + "isNaN" + "parseFloat" + "parseInt" + "decodeURI" + "decodeURIComponent" + "encodeURI" + "encodeURIComponent" + "require" + "alert" + "prompt" + "btoa" + "atob" + "confirm" + "structuredClone" + "setTimeout" + "clearTimeout" + "setInterval" + "clearInterval" + "queueMicrotask") (#is-not? local)) ; Function and method definitions |