diff options
Diffstat (limited to 'runtime/syntax/python.vim')
-rw-r--r-- | runtime/syntax/python.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/syntax/python.vim b/runtime/syntax/python.vim index d59074321..0cdf9c4e4 100644 --- a/runtime/syntax/python.vim +++ b/runtime/syntax/python.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Python " Maintainer: Neil Schemenauer <nas@python.ca> -" Last Change: 2009-10-13 +" Last Change: 2010 Sep 21 " Credits: Zvezdan Petkovic <zpetkovic@acm.org> " Neil Schemenauer <nas@python.ca> " Dmitry Vasiliev @@ -45,6 +45,11 @@ elseif exists("b:current_syntax") finish endif +" We need nocompatible mode in order to continue lines with backslashes. +" Original setting will be restored. +let s:cpo_save = &cpo +set cpo&vim + " Keep Python keywords in alphabetical order inside groups for easy " comparison with the table in the 'Python Language Reference' " http://docs.python.org/reference/lexical_analysis.html#keywords. @@ -292,4 +297,7 @@ endif let b:current_syntax = "python" +let &cpo = s:cpo_save +unlet s:cpo_save + " vim:set sw=2 sts=2 ts=8 noet: |