From 504fe1043298c468f56a6ef6dc61f35b2d69495a Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Fri, 16 Feb 2024 10:58:58 -0800 Subject: [PATCH] feat(ecma): highlight label identifiers --- queries/ecma/highlights.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index 233b20e00..051d47749 100644 --- a/queries/ecma/highlights.scm +++ b/queries/ecma/highlights.scm @@ -36,6 +36,8 @@ ((identifier) @type.builtin (#any-of? @type.builtin "Object" "Function" "Boolean" "Symbol" "Number" "Math" "Date" "String" "RegExp" "Map" "Set" "WeakMap" "WeakSet" "Promise" "Array" "Int8Array" "Uint8Array" "Uint8ClampedArray" "Int16Array" "Uint16Array" "Int32Array" "Uint32Array" "Float32Array" "Float64Array" "ArrayBuffer" "DataView" "Error" "EvalError" "InternalError" "RangeError" "ReferenceError" "SyntaxError" "TypeError" "URIError")) +(statement_identifier) @label + ; Function and method definitions ;-------------------------------- (function_expression