1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 09:50:04 +08:00
SpaceVim/bundle/nvim-treesitter-0.9.1/queries/go/injections.scm

14 lines
600 B
Scheme

(comment) @comment
(call_expression
(selector_expression) @_function (#any-of? @_function
"regexp.Match"
"regexp.MatchReader"
"regexp.MatchString"
"regexp.Compile"
"regexp.CompilePOSIX"
"regexp.MustCompile"
"regexp.MustCompilePOSIX")
(argument_list
. [(raw_string_literal) (interpreted_string_literal)] @regex (#offset! @regex 0 1 0 -1)))