aboutsummaryrefslogtreecommitdiffstats
path: root/queries/lua
diff options
context:
space:
mode:
Diffstat (limited to 'queries/lua')
-rw-r--r--queries/lua/highlights.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm
index d3a778d37..50f14561a 100644
--- a/queries/lua/highlights.scm
+++ b/queries/lua/highlights.scm
@@ -138,7 +138,8 @@
(string) @string
(number) @number
(label_statement) @label
-(field (identifier) @field)
+; A bit of a tricky one, this will only match field names
+(field . (identifier) @field (_))
(shebang) @comment
;; Error