injections(go): inject regex into some regexp functions

This commit is contained in:
Stephan Seitz 2022-11-28 23:29:45 +01:00 committed by Christian Clason
parent 38845442b7
commit 779b4222a3

View file

@ -1 +1,13 @@
(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)))