vim-python / python-syntax

Python syntax highlighting for Vim
MIT License
438 stars 84 forks source link

attribute named “print” wongly detected as syntax error in Python 3 #82

Open fdik opened 3 years ago

fdik commented 3 years ago

This line is wrongly detected as a syntax error:

elif options.print:

But print is an existing attribute of options, and the code works.

fdik commented 3 years ago

Same problem when using the print function as object:

output = print