aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/lua/injections.scm15
1 files changed, 15 insertions, 0 deletions
diff --git a/queries/lua/injections.scm b/queries/lua/injections.scm
index 7bca11bb8..80ecb1183 100644
--- a/queries/lua/injections.scm
+++ b/queries/lua/injections.scm
@@ -7,6 +7,21 @@
)
(#eq? @_cdef_identifier "cdef")
+ (#match? @c "^[\"']")
+ (#offset! @c 0 1 0 -1)
+)
+
+(
+ (function_call
+ (field_expression
+ (property_identifier) @_cdef_identifier)
+ (arguments
+ (string) @c)
+ )
+
+ (#eq? @_cdef_identifier "cdef")
+ (#match? @c "^\\[\\[")
+ (#offset! @c 0 2 0 -2)
)
(comment) @comment