hdima / python-syntax

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

Add pythonConvention HL class (`cls` and `self`) #54

Closed AloisMahdal closed 6 years ago

AloisMahdal commented 8 years ago

These are especially useful in OOP as they help visually distinguish how many parameters the function will be called with (in signature), or actual state preservation from transient or return variables (in function body).

AloisMahdal commented 8 years ago

This has been hanging in my closet for a while, catching dust.

Similar to #48 except that this one takes also cls into account and uses separate highlight group.

jakar commented 8 years ago

After reading some older issues and pull requests, it looks like @hdima is pretty opposed to highlighting self. So perhaps leave pythonConvention, but don't link it to Define?