diff options
author | Brett Cannon <bcannon@gmail.com> | 2006-03-01 20:53:08 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2006-03-01 20:53:08 (GMT) |
commit | 20e192b6a636f0f7a9d7cf85c6b30e64dc6c7bc6 (patch) | |
tree | ae01afc8bb6bed6a64fe6b59ebe3d6f89f95b885 /Misc/Vim/python.vim | |
parent | a9f068726fb4cf3693bd70b4b98bd0deaba45443 (diff) | |
download | cpython-20e192b6a636f0f7a9d7cf85c6b30e64dc6c7bc6.zip cpython-20e192b6a636f0f7a9d7cf85c6b30e64dc6c7bc6.tar.gz cpython-20e192b6a636f0f7a9d7cf85c6b30e64dc6c7bc6.tar.bz2 |
Update for 'with' statement.
Diffstat (limited to 'Misc/Vim/python.vim')
-rw-r--r-- | Misc/Vim/python.vim | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Misc/Vim/python.vim b/Misc/Vim/python.vim index 6a1fa9f..0d5e6d0 100644 --- a/Misc/Vim/python.vim +++ b/Misc/Vim/python.vim @@ -14,8 +14,9 @@ if exists("python_highlight_all") let python_highlight_space_errors = 1 endif -syn keyword pythonStatement assert break continue del except exec finally -syn keyword pythonStatement global lambda pass print raise return try yield +syn keyword pythonStatement as assert break continue del except exec finally +syn keyword pythonStatement global lambda pass print raise return try with +syn keyword pythonStatement yield syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite @@ -82,8 +83,9 @@ if exists("python_highlight_exceptions") syn keyword pythonException UnicodeTranslateError MemoryError StopIteration syn keyword pythonException PendingDeprecationWarning EnvironmentError syn keyword pythonException LookupError OSError DeprecationWarning - syn keyword pythonException UnicodeError FloatingPointError ReferenceError - syn keyword pythonException NameError OverflowWarning IOError SyntaxError + syn keyword pythonException UnicodeError UnicodeEncodeError + syn keyword pythonException FloatingPointError ReferenceError NameError + syn keyword pythonException OverflowWarning IOError SyntaxError syn keyword pythonException FutureWarning SystemExit Exception EOFError syn keyword pythonException StandardError ValueError TabError KeyError syn keyword pythonException ZeroDivisionError SystemError @@ -92,7 +94,7 @@ if exists("python_highlight_exceptions") syn keyword pythonException RuntimeWarning KeyboardInterrupt UserWarning syn keyword pythonException SyntaxWarning UnboundLocalError ArithmeticError syn keyword pythonException Warning NotImplementedError AttributeError - syn keyword pythonException OverflowError UnicodeEncodeError + syn keyword pythonException OverflowError BaseException endif |