nvim-treesitter/queries/lua/injections.scm

28 lines
446 B
Scheme
Raw Normal View History

2020-12-31 19:54:14 +01:00
(
(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)
2020-12-31 19:54:14 +01:00
)
(comment) @comment