injections(teal): fix cdef injection

This commit is contained in:
Stephan Seitz 2021-09-21 20:41:17 +02:00
parent 46858cfeea
commit 351eefd988

View file

@ -7,6 +7,21 @@
)
(#eq? @_cdef_identifier "cdef")
(#match? @c "^[\"']")
(#offset! @c 0 1 0 -1)
)
(
(function_call
(index
(identifier) @_cdef_identifier)
(arguments
(string) @c)
)
(#eq? @_cdef_identifier "cdef")
(#match? @c "^\\[\\[")
(#offset! @c 0 2 0 -2)
)
(comment) @comment