nvim-treesitter/queries/teal/injections.scm
Lewis Russell 011ac894ec Prefer lua-match over match
as string.find is much quicker than vim.regex:match*
2021-11-23 10:02:06 +01:00

27 lines
412 B
Scheme

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