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

@@ -114,7 +114,6 @@ are optional and will not have any effect for now.
@constant.macro
@string
@string.regex
@string.regex-classchar
@string.escape
@string.special
@character

View File

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