Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/lua/highlights.scm')
-rw-r--r--runtime/queries/lua/highlights.scm33
1 files changed, 18 insertions, 15 deletions
diff --git a/runtime/queries/lua/highlights.scm b/runtime/queries/lua/highlights.scm
index 43e45b27..2f3b3c05 100644
--- a/runtime/queries/lua/highlights.scm
+++ b/runtime/queries/lua/highlights.scm
@@ -115,18 +115,6 @@
"}"
] @punctuation.bracket
-;; Variables
-(identifier) @variable
-
-((identifier) @variable.builtin
- (#eq? @variable.builtin "self"))
-
-(variable_list
- (attribute
- "<" @punctuation.bracket
- (identifier) @attribute
- ">" @punctuation.bracket))
-
; ;; Constants
[
(false)
@@ -189,9 +177,6 @@
name: (identifier) @function
value: (function_definition)))
-;; Property
-(dot_index_expression field: (identifier) @variable.other.member)
-
(function_call
name: [
(identifier) @function.call
@@ -219,3 +204,21 @@
; 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)
+
+;; Variables
+((identifier) @variable.builtin
+ (#eq? @variable.builtin "self"))
+
+(variable_list
+ (attribute
+ "<" @punctuation.bracket
+ (identifier) @attribute
+ ">" @punctuation.bracket))
+
+(identifier) @variable
+
+;; Error
+(ERROR) @error