Skip to content

Commit b6d761f

Browse files
committed
Fixed highlighting for -- and ++
1 parent 4a2bf5e commit b6d761f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Revision 2.6.1 (unknown):
1313
"python_highlight_string_templates" option;
1414
- Added support for str.format syntax controlled by
1515
"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";
1618

1719
Revision 2.5.6 (2007-02-04):
1820

python.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ syn keyword pythonTodo TODO FIXME XXX contained
129129
" Errors
130130
syn match pythonError "\<\d\+\D\+\>" display
131131
syn match pythonError "[$?]" display
132-
syn match pythonError "[-+&|]\{2,}" display
132+
syn match pythonError "[&|]\{2,}" display
133133
syn match pythonError "[=]\{3,}" display
134134

135135
" TODO: Mixing spaces and tabs also may be used for pretty formatting multiline

0 commit comments

Comments
 (0)