nvim-treesitter/queries/lua/injections.scm
2021-09-25 00:59:40 +02:00

27 lines
446 B
Scheme

(
(function_call
(field_expression
(property_identifier) @_cdef_identifier)
(arguments
(string) @c)
)
(#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