Skip to content

Commit

Permalink
[language-python] Fix highlighting of some constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Apr 12, 2024
1 parent 03af124 commit 5d6af88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/language-python/grammars/ts/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d6af88

Please sign in to comment.