Unnamed repository; edit this file 'description' to name the repository.
Add highlighting for lua methods (#13401)
Tobias Tschinkowitz 10 months ago
parent 8580d35 · commit 95c8d9c
-rw-r--r--runtime/queries/lua/highlights.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/queries/lua/highlights.scm b/runtime/queries/lua/highlights.scm
index 2e7d2bac..43e45b27 100644
--- a/runtime/queries/lua/highlights.scm
+++ b/runtime/queries/lua/highlights.scm
@@ -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)