diff --git a/CHANGES.txt b/CHANGES.txt index 9961ffd..47a801a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -13,6 +13,8 @@ Revision 2.6.1 (unknown): "python_highlight_string_templates" option; - Added support for str.format syntax controlled by "python_highlight_string_format" option; + - Removed highlighting for "--" and "++" because it's a valid Python + expressions which can be interpreted as "a + +b"; Revision 2.5.6 (2007-02-04): diff --git a/python.vim b/python.vim index 1dc68ad..c6b498b 100644 --- a/python.vim +++ b/python.vim @@ -129,7 +129,7 @@ syn keyword pythonTodo TODO FIXME XXX contained " Errors syn match pythonError "\<\d\+\D\+\>" display syn match pythonError "[$?]" display -syn match pythonError "[-+&|]\{2,}" display +syn match pythonError "[&|]\{2,}" display syn match pythonError "[=]\{3,}" display " TODO: Mixing spaces and tabs also may be used for pretty formatting multiline