ITADN

[python] many false positives in marking CamelCase names as classes

#4540Openchrisjbillington 创建于 2026-05-02
C: Syntax
### What happened? Since upgrading to ST 1405, I'm seeing that Python classes in imports and some other places are highlighted as distinct from other symbols, in most colour schemes they're rendered in italics and a different colour to other names. This appears to be based on them being in CamelCase. This would be good if it could detect classes more specifically, but in practice I see a lot of false positives, as in the below screenshot. Most of these are just constants, not classes. Whilst the standard is to write constants in all caps, I notice a lot of my code doesn't follow this in practice, resulting in such false positives. Ideally there would be a way to identify classes unambiguously, but if not I think I'd prefer them not to be distinguished from other names in order to avoid the false positives. Edit: I didn't intend to add the "C: Syntax" label and don't see how to remove it. Apologies. <img width="389" height="415" alt="Image" src="https://github.com/user-attachments/assets/4b2a61ee-5121-43f0-9a16-4e028601fa29" />
7 条评论