From 99038c83d15345830b0f793484ac301a04bda05a Mon Sep 17 00:00:00 2001 From: Lev Velykoivanenko Date: Sat, 18 Oct 2025 18:53:46 +0200 Subject: [PATCH] feat(python): add combined group for @string.regexp --- runtime/queries/python/highlights.scm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm index 70f6d9acc..b53c34eb7 100644 --- a/runtime/queries/python/highlights.scm +++ b/runtime/queries/python/highlights.scm @@ -416,10 +416,17 @@ (call function: (attribute object: (identifier) @_re) - arguments: (argument_list - . - (string - (string_content) @string.regexp)) + arguments: [ + (argument_list + . + (string + (string_content) @string.regexp)) + (argument_list + . + (concatenated_string + (string + (string_content) @string.regexp))) + ] (#eq? @_re "re")) ; Decorators