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: not highlighted #18

Closed Guerki closed 9 years ago

Guerki commented 10 years ago

I noticed that the "else:" statement (with colon) is not correctly highlighted. Adding "else:" to line 156: syn keyword pythonConditional remedied the issue.

hdima commented 9 years ago

It's probably because you have : as a part of iskeyword option. I've added more details to the corresponding PR: https://github.com/hdima/python-syntax/pull/19#issuecomment-68182887