Fixed highlighting for -- and ++

This commit is contained in:
Dmitry Vasiliev
2008-09-21 20:35:52 +04:00
parent 4a2bf5e853
commit b6d761f8cd
2 changed files with 3 additions and 1 deletions

View File

@@ -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):

View File

@@ -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