mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
Merge pull request #96 from theHamsta/python-__dunder__
Add highlighting of dunder identifiers (e.g. __all__, __add__) to Python highlights
This commit is contained in:
commit
b84fde9718
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,9 @@
|
||||||
((identifier) @constant
|
((identifier) @constant
|
||||||
(match? @constant "^[A-Z][A-Z_0-9]*$"))
|
(match? @constant "^[A-Z][A-Z_0-9]*$"))
|
||||||
|
|
||||||
|
((identifier) @constant.builtin
|
||||||
|
(match? @constant.builtin "^__[a-zA-Z0-9_]*__$"))
|
||||||
|
|
||||||
; Function calls
|
; Function calls
|
||||||
|
|
||||||
(decorator) @function
|
(decorator) @function
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue