diff --git a/queries/highlights.scm b/queries/highlights.scm index 9312d682..3219cf0e 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -59,12 +59,10 @@ (#match? @constant "^[A-Z_][A-Z\\d_]+$")) ((identifier) @variable.builtin - (#match? @variable.builtin "^(arguments|module|console|window|document)$") - (#is-not? local)) + (#match? @variable.builtin "^(arguments|module|console|window|document)$")) ((identifier) @function.builtin - (#eq? @function.builtin "require") - (#is-not? local)) + (#eq? @function.builtin "require")) ; Literals ;--------- diff --git a/test/highlight/variables.js b/test/highlight/variables.js index 93ad4317..a446e0e0 100644 --- a/test/highlight/variables.js +++ b/test/highlight/variables.js @@ -13,12 +13,12 @@ module.exports = function(one, two) { if (something()) { let module = null, one = 1; - // ^ variable + // ^ variable.builtin // ^ variable console.log(module, one, two); // ^ variable.builtin - // ^ variable + // ^ variable.builtin // ^ variable // ^ variable.parameter }