changeset 6747:9f05629100d9

Add highlighting for lua methods (#13401)
author Tobias Tschinkowitz <me@zibebe.net>
date Sun, 27 Apr 2025 15:41:16 +0200
parents 00c00cef6bf6
children f1e113eff6fb
files runtime/queries/lua/highlights.scm
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/queries/lua/highlights.scm	Sun Apr 27 21:39:05 2025 +0800
+++ b/runtime/queries/lua/highlights.scm	Sun Apr 27 15:41:16 2025 +0200
@@ -189,6 +189,9 @@
     name: (identifier) @function
     value: (function_definition)))
 
+;; Property
+(dot_index_expression field: (identifier) @variable.other.member)
+
 (function_call
   name: [
     (identifier) @function.call
@@ -216,6 +219,3 @@
 ; A bit of a tricky one, this will only match field names
 (field . (identifier) @variable.other.member (_))
 (hash_bang_line) @comment
-
-;; Property
-(dot_index_expression field: (identifier) @variable.other.member)