feat(queries): regex injection for golang (#9510)

pull/9149/merge
Matouš Dzivjak 10 months ago committed by GitHub
parent 81ae768a4e
commit d545452819
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,2 +1,14 @@
((comment) @injection.content ((comment) @injection.content
(#set! injection.language "comment")) (#set! injection.language "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)
] @injection.content
(#set! injection.language "regex")))

Loading…
Cancel
Save