mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -04:00
Python highlights: Add regex injections: re.match(r"...")
This commit is contained in:
parent
43381c1321
commit
d9105e00a6
2 changed files with 6 additions and 1 deletions
|
|
@ -114,7 +114,6 @@ are optional and will not have any effect for now.
|
||||||
@constant.macro
|
@constant.macro
|
||||||
@string
|
@string
|
||||||
@string.regex
|
@string.regex
|
||||||
@string.regex-classchar
|
|
||||||
@string.escape
|
@string.escape
|
||||||
@string.special
|
@string.special
|
||||||
@character
|
@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.*"))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue