From d9105e00a6cc6ec03f37f01f129d3d5882c84a67 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Mon, 28 Dec 2020 18:20:34 +0100 Subject: Python highlights: Add regex injections: re.match(r"...") --- queries/python/injections.scm | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 queries/python/injections.scm (limited to 'queries/python/injections.scm') diff --git a/queries/python/injections.scm b/queries/python/injections.scm new file mode 100644 index 000000000..feec13f73 --- /dev/null +++ b/queries/python/injections.scm @@ -0,0 +1,6 @@ +((call + function: (attribute + object: (identifier) @_re) + arguments: (argument_list (string) @regex)) + (#eq? @_re "re") + (#match? @regex "^r.*")) -- cgit v1.2.3-70-g09d2