[language-python] Fix highlighting of some constructors

This commit is contained in:
Andrew Dupont 2024-04-11 20:39:26 -07:00
parent 03af1244d3
commit 5d6af88dd7

View File

@ -37,13 +37,13 @@
(call
function: (identifier) @support.type.constructor.python
(#match? @support.type.constructor.python "^[A-Z][a-z_]+")
(#match? @support.type.constructor.python "^[A-Z][A-Za-z_]+")
(#set! capture.final true))
(call
function: (attribute
attribute: (identifier) @support.type.constructor.python)
(#match? @support.type.constructor.python "^[A-Z][a-z_]+")
(#match? @support.type.constructor.python "^[A-Z][A-Za-z_]+")
(#set! capture.final true))
(call