diff options
Diffstat (limited to 'queries/python/injections.scm')
| -rw-r--r-- | queries/python/injections.scm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/queries/python/injections.scm b/queries/python/injections.scm index 04d0eed1f..effe2ecc7 100644 --- a/queries/python/injections.scm +++ b/queries/python/injections.scm @@ -1,8 +1,10 @@ ((call function: (attribute object: (identifier) @_re) - arguments: (argument_list (string) @regex)) + arguments: (argument_list (string) @injection.content)) (#eq? @_re "re") - (#lua-match? @regex "^r.*")) + (#lua-match? @injection.content "^r.*") + (#set! injection.language "regex")) -(comment) @comment +((comment) @injection.content + (#set! injection.language "comment")) |
