Python highlights: Add regex injections: re.match(r"...")

This commit is contained in:
Stephan Seitz 2020-12-28 18:20:34 +01:00 committed by Thomas Vigouroux
parent 43381c1321
commit d9105e00a6
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,6 @@
((call
function: (attribute
object: (identifier) @_re)
arguments: (argument_list (string) @regex))
(#eq? @_re "re")
(#match? @regex "^r.*"))