mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-11 07:01:54 +08:00
Fixed highlighting for -- and ++
This commit is contained in:
@@ -13,6 +13,8 @@ Revision 2.6.1 (unknown):
|
|||||||
"python_highlight_string_templates" option;
|
"python_highlight_string_templates" option;
|
||||||
- Added support for str.format syntax controlled by
|
- Added support for str.format syntax controlled by
|
||||||
"python_highlight_string_format" option;
|
"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):
|
Revision 2.5.6 (2007-02-04):
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ syn keyword pythonTodo TODO FIXME XXX contained
|
|||||||
" Errors
|
" Errors
|
||||||
syn match pythonError "\<\d\+\D\+\>" display
|
syn match pythonError "\<\d\+\D\+\>" display
|
||||||
syn match pythonError "[$?]" display
|
syn match pythonError "[$?]" display
|
||||||
syn match pythonError "[-+&|]\{2,}" display
|
syn match pythonError "[&|]\{2,}" display
|
||||||
syn match pythonError "[=]\{3,}" display
|
syn match pythonError "[=]\{3,}" display
|
||||||
|
|
||||||
" TODO: Mixing spaces and tabs also may be used for pretty formatting multiline
|
" TODO: Mixing spaces and tabs also may be used for pretty formatting multiline
|
||||||
|
|||||||
Reference in New Issue
Block a user