浏览代码

Fixed highlighting for -- and ++

Dmitry Vasiliev 17 年前
父节点
当前提交
b6d761f8cd
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2
    0
      CHANGES.txt
  2. 1
    1
      python.vim

+ 2
- 0
CHANGES.txt 查看文件

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 查看文件

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