From 2170a36416d956cc673128bdaccb76139cf9711b Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Sun, 19 Mar 2023 21:04:38 -0400 Subject: fix(lua): properly highlight labels --- queries/lua/highlights.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'queries/lua') diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index fadcb2ac0..38f926a0d 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -8,8 +8,6 @@ "local" ] @keyword -(label_statement) @label - (break_statement) @keyword (do_statement @@ -109,6 +107,7 @@ [ ";" ":" + "::" "," "." ] @punctuation.delimiter @@ -136,6 +135,12 @@ (["<" ">"] @punctuation.bracket (identifier) @attribute))) +;; Labels + +(label_statement (identifier) @label) + +(goto_statement (identifier) @label) + ;; Constants ((identifier) @constant -- cgit v1.2.3-70-g09d2