nvim-treesitter/queries/teal/injections.scm

28 lines
412 B
Scheme
Raw Normal View History

2021-03-08 22:35:21 +00:00
(
(function_call
(index
(identifier) @_cdef_identifier)
(arguments
(string) @c)
)
(#eq? @_cdef_identifier "cdef")
(#lua-match? @c "^[\"']")
2021-09-21 20:41:17 +02:00
(#offset! @c 0 1 0 -1)
)
(
(function_call
(index
(identifier) @_cdef_identifier)
(arguments
(string) @c)
)
(#eq? @_cdef_identifier "cdef")
(#lua-match? @c "^%[%[")
2021-09-21 20:41:17 +02:00
(#offset! @c 0 2 0 -2)
2021-03-08 22:35:21 +00:00
)
(comment) @comment