From b8a0791eb435efc790755883cad166a91a4fe864 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Fri, 28 Apr 2023 03:42:54 -0400 Subject: refactor(lua): move _VERSION to `@constant.builtin`, builtin types to `@namespace.builtin` --- queries/lua/highlights.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'queries/lua') diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index 5fbf8a183..a7b7699d8 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -127,8 +127,14 @@ (identifier) @variable +((identifier) @constant.builtin + (#eq? @constant.builtin "_VERSION")) + ((identifier) @variable.builtin - (#any-of? @variable.builtin "_G" "_VERSION" "debug" "io" "jit" "math" "os" "package" "self" "string" "table" "utf8")) + (#eq? @variable.builtin "self")) + +((identifier) @namespace.builtin + (#any-of? @namespace.builtin "_G" "debug" "io" "jit" "math" "os" "package" "string" "table" "utf8")) ((identifier) @keyword.coroutine (#eq? @keyword.coroutine "coroutine")) -- cgit v1.2.3-70-g09d2