hdima / python-syntax

Python syntax highlighting script for Vim
http://www.vim.org/scripts/script.php?script_id=790
MIT License
364 stars 109 forks source link

Add highlight of classes #20

Closed Olivia5k closed 9 years ago

Olivia5k commented 10 years ago

This gives a highlight to variables that are UpperCamelCase, e.g. Python classes.

hdima commented 9 years ago

Thank you for the PR!

But I don't really like the idea for almost the same reasons I've mentioned in https://github.com/hdima/python-syntax/issues/21#issuecomment-68217609.

The main issue is that it can be confusing if some code don't follow CamelCase convention for names. For example if you need to use a library which uses lowercase names then you'll end up with a mixed highlighting.

Moreover the implementation isn't so straightforward because Python 3 also can use non-ASCII names.