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

No difference in highlighting of `print` between Python 2 and 3 #40

Closed ukch closed 8 years ago

ukch commented 8 years ago

print has changed from a statement to a built-in function between Python 2 and 3. I would expect the syntax highlighting to reflect this change.

hdima commented 8 years ago

It does. However if you set python_print_as_function option it will highlight print as a function for Python 2. And moreover python_print_as_function will be set automatically if python_highlight_all option is set. So I guess you just need to add let python_print_as_function = 0 to your configuration.