injections(lua): fix cdef injection

Fixes #1840
This commit is contained in:
Stephan Seitz 2021-09-21 20:38:45 +02:00
parent e4c56e691a
commit b7c95eef95

View file

@ -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