mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.0g02
This commit is contained in:
@@ -52,6 +52,9 @@ syn keyword pythonPreCondit import from as
|
||||
syn match pythonComment "#.*$" contains=pythonTodo
|
||||
syn keyword pythonTodo TODO FIXME XXX contained
|
||||
|
||||
" Decorators (new in Python 2.4)
|
||||
syn match pythonDecorator "@" display nextgroup=pythonFunction skipwhite
|
||||
|
||||
" strings
|
||||
syn region pythonString matchgroup=Normal start=+[uU]\='+ end=+'+ skip=+\\\\\|\\'+ contains=pythonEscape
|
||||
syn region pythonString matchgroup=Normal start=+[uU]\="+ end=+"+ skip=+\\\\\|\\"+ contains=pythonEscape
|
||||
@@ -85,6 +88,8 @@ endif
|
||||
|
||||
if exists("python_highlight_builtins")
|
||||
" builtin functions, types and objects, not really part of the syntax
|
||||
syn keyword pythonBuiltin True False bool enumerate set frozenset help
|
||||
syn keyword pythonBuiltin reversed sorted sum
|
||||
syn keyword pythonBuiltin Ellipsis None NotImplemented __import__ abs
|
||||
syn keyword pythonBuiltin apply buffer callable chr classmethod cmp
|
||||
syn keyword pythonBuiltin coerce compile complex delattr dict dir divmod
|
||||
@@ -110,6 +115,8 @@ if exists("python_highlight_exceptions")
|
||||
syn keyword pythonException StandardError StopIteration SyntaxError
|
||||
syn keyword pythonException SyntaxWarning SystemError SystemExit TabError
|
||||
syn keyword pythonException TypeError UnboundLocalError UnicodeError
|
||||
syn keyword pythonException UnicodeEncodeError UnicodeDecodeError
|
||||
syn keyword pythonException UnicodeTranslateError
|
||||
syn keyword pythonException UserWarning ValueError Warning WindowsError
|
||||
syn keyword pythonException ZeroDivisionError
|
||||
endif
|
||||
@@ -151,6 +158,7 @@ if version >= 508 || !exists("did_python_syn_inits")
|
||||
HiLink pythonPreCondit PreCondit
|
||||
HiLink pythonComment Comment
|
||||
HiLink pythonTodo Todo
|
||||
HiLink pythonDecorator Define
|
||||
if exists("python_highlight_numbers")
|
||||
HiLink pythonNumber Number
|
||||
endif
|
||||
|
Reference in New Issue
Block a user