fix(python): regex injection not working for concatenated strings (#8197)

Co-authored-by: Riley Bruins <ribru17@hotmail.com>
This commit is contained in:
Lev Velykoivanenko 2025-10-26 17:25:42 +01:00 committed by GitHub
parent 98fe644cb3
commit c53bb10a71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 83 additions and 3 deletions

View file

@ -1 +1,8 @@
; inherits: python
((binary_operator
left: (string
(string_content) @injection.content)
operator: "%")
(#set! injection.language "printf"))
((comment) @injection.content
(#set! injection.language "comment"))