Closed gotgenes closed 3 years ago
The idea is to show differences in implementation of None
. In Python 2 None
is a built-in object/type and it was possible to assign to None
prior to Python 2.4. In Python 3 None
is a part of the grammar so it can be seen more as a statement. And the same goes for True
and False
.
This has been fixed over at the fork vim-python/python-syntax.
This plugin's syntax file treats
None
as apythonBuiltinObj
for Python 2, but as apythonStatement
for Python 3. This causes different highlighting forNone
in Python 2 versus Python 3, sincepythonBuiltinObj
maps to theStructure
group, butpythonStatement
maps to theStatement
group.None
should be different between Python 2 and Python 3? I'm not aware of anything different in the behavior ofNone
from Python 2 to Python 3.None
— a builtin constant — most logically map to theConstant
group, rather thanStructure
or (especially)Statement
? (The same goes for other builtin constants likeTrue
,False
, etc.)