Browse Source

Fixed highlighting for -- and ++

Dmitry Vasiliev 15 years ago
parent
commit
b6d761f8cd
2 changed files with 3 additions and 1 deletions
  1. 2
    0
      CHANGES.txt
  2. 1
    1
      python.vim

+ 2
- 0
CHANGES.txt View File

13
       "python_highlight_string_templates" option;
13
       "python_highlight_string_templates" option;
14
     - Added support for str.format syntax controlled by
14
     - Added support for str.format syntax controlled by
15
       "python_highlight_string_format" option;
15
       "python_highlight_string_format" option;
16
+    - Removed highlighting for "--" and "++" because it's a valid Python
17
+      expressions which can be interpreted as "a + +b";
16
 
18
 
17
 Revision 2.5.6 (2007-02-04):
19
 Revision 2.5.6 (2007-02-04):
18
 
20
 

+ 1
- 1
python.vim View File

129
 " Errors
129
 " Errors
130
 syn match pythonError		"\<\d\+\D\+\>" display
130
 syn match pythonError		"\<\d\+\D\+\>" display
131
 syn match pythonError		"[$?]" display
131
 syn match pythonError		"[$?]" display
132
-syn match pythonError		"[-+&|]\{2,}" display
132
+syn match pythonError		"[&|]\{2,}" display
133
 syn match pythonError		"[=]\{3,}" display
133
 syn match pythonError		"[=]\{3,}" display
134
 
134
 
135
 " TODO: Mixing spaces and tabs also may be used for pretty formatting multiline
135
 " TODO: Mixing spaces and tabs also may be used for pretty formatting multiline