mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
Python highlights: Add regex injections: re.match(r"...")
This commit is contained in:
committed by
Thomas Vigouroux
parent
43381c1321
commit
d9105e00a6
@@ -114,7 +114,6 @@ are optional and will not have any effect for now.
|
||||
@constant.macro
|
||||
@string
|
||||
@string.regex
|
||||
@string.regex-classchar
|
||||
@string.escape
|
||||
@string.special
|
||||
@character
|
||||
|
||||
6
queries/python/injections.scm
Normal file
6
queries/python/injections.scm
Normal file
@@ -0,0 +1,6 @@
|
||||
((call
|
||||
function: (attribute
|
||||
object: (identifier) @_re)
|
||||
arguments: (argument_list (string) @regex))
|
||||
(#eq? @_re "re")
|
||||
(#match? @regex "^r.*"))
|
||||
Reference in New Issue
Block a user