From d6ce707613e9d19873b7f9f37d9643c9caf4b032 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 31 Dec 2025 13:47:33 +0100 Subject: feat(lua): replace operator list with field --- runtime/queries/lua/highlights.scm | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/runtime/queries/lua/highlights.scm b/runtime/queries/lua/highlights.scm index 79ab165aa..6e33a955c 100644 --- a/runtime/queries/lua/highlights.scm +++ b/runtime/queries/lua/highlights.scm @@ -70,36 +70,18 @@ ] @keyword.function) ; Operators +(binary_expression + operator: _ @operator) + +(unary_expression + operator: _ @operator) + [ "and" "not" "or" ] @keyword.operator -[ - "+" - "-" - "*" - "/" - "%" - "^" - "#" - "==" - "~=" - "<=" - ">=" - "<" - ">" - "=" - "&" - "~" - "|" - "<<" - ">>" - "//" - ".." -] @operator - ; Punctuations [ ";" -- cgit v1.2.3-70-g09d2