aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/python/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/python/highlights.scm')
-rw-r--r--runtime/queries/python/highlights.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm
index 70f6d9acc..350990b1f 100644
--- a/runtime/queries/python/highlights.scm
+++ b/runtime/queries/python/highlights.scm
@@ -417,11 +417,19 @@
function: (attribute
object: (identifier) @_re)
arguments: (argument_list
- .
(string
(string_content) @string.regexp))
(#eq? @_re "re"))
+(call
+ function: (attribute
+ object: (identifier) @_re)
+ arguments: (argument_list
+ (concatenated_string
+ (string
+ (string_content) @string.regexp)))
+ (#eq? @_re "re"))
+
; Decorators
((decorator
"@" @attribute)