mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Add highlighting of dunder identifiers (e.g. __all__, __add__) to Python highlights
This commit is contained in:
parent
969d496f3f
commit
a85cf1a47c
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,9 @@
|
|||
((identifier) @constant
|
||||
(match? @constant "^[A-Z][A-Z_0-9]*$"))
|
||||
|
||||
((identifier) @constant.builtin
|
||||
(match? @constant.builtin "^__[a-zA-Z0-9_]*__$"))
|
||||
|
||||
; Function calls
|
||||
|
||||
(decorator) @function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue