From b6d761f8cd5780bc6f86b7ed4e0c0797d6df3707 Mon Sep 17 00:00:00 2001 From: Dmitry Vasiliev Date: Sun, 21 Sep 2008 20:35:52 +0400 Subject: [PATCH] Fixed highlighting for -- and ++ --- CHANGES.txt | 2 ++ python.vim | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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