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

else: highlighting and erroneous numbers #19

Closed Guerki closed 9 years ago

Guerki commented 10 years ago

else: is now highlighted as a pythonConditional keyword and numbers followed by colons are no longer seen ass erroneous numbers, so conditionals can conform to PEP8, e.g. if x == 0:

hdima commented 9 years ago

I think you have : as a part of iskeyword option (you can check it in Vim with :set iskeyword?).

For me if/else with the current python.vim looks like this:

else

And with : added to iskeyword option it looks like this:

else_bad