mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-09 06:04:48 +08:00
Reorganized keywords
This commit is contained in:
@@ -4,6 +4,8 @@ Revision 3.0.0 (2008-09-?):
|
|||||||
- Updated support for str.format;
|
- Updated support for str.format;
|
||||||
- Added new builtins introduced in Python 2.6: "ascii", "exec",
|
- Added new builtins introduced in Python 2.6: "ascii", "exec",
|
||||||
"memoryview", "print";
|
"memoryview", "print";
|
||||||
|
- Added new keyword "nonlocal";
|
||||||
|
- Removed exception "StandardError";
|
||||||
- Removed builtins: "apply", "basestring", "buffer", "callable", "coerce",
|
- Removed builtins: "apply", "basestring", "buffer", "callable", "coerce",
|
||||||
"execfile", "file", "help", "intern", "long", "raw_input", "reduce",
|
"execfile", "file", "help", "intern", "long", "raw_input", "reduce",
|
||||||
"reload", "unichr", "unicode", "xrange";
|
"reload", "unichr", "unicode", "xrange";
|
||||||
|
|||||||
@@ -96,16 +96,17 @@ endif
|
|||||||
|
|
||||||
" Keywords
|
" Keywords
|
||||||
syn keyword pythonStatement break continue del
|
syn keyword pythonStatement break continue del
|
||||||
syn keyword pythonStatement exec return
|
syn keyword pythonStatement exec return as
|
||||||
syn keyword pythonStatement pass raise
|
syn keyword pythonStatement pass raise
|
||||||
syn keyword pythonStatement global assert
|
syn keyword pythonStatement global assert
|
||||||
syn keyword pythonStatement lambda yield
|
syn keyword pythonStatement lambda yield
|
||||||
syn keyword pythonStatement with nonlocal
|
syn keyword pythonStatement with nonlocal
|
||||||
|
syn keyword pythonStatement False None True
|
||||||
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
|
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
|
||||||
syn match pythonFunction "[a-zA-Z_][a-zA-Z0-9_]*" display contained
|
syn match pythonFunction "[a-zA-Z_][a-zA-Z0-9_]*" display contained
|
||||||
syn keyword pythonRepeat for while
|
syn keyword pythonRepeat for while
|
||||||
syn keyword pythonConditional if elif else
|
syn keyword pythonConditional if elif else
|
||||||
syn keyword pythonImport import from as
|
syn keyword pythonImport import from
|
||||||
syn keyword pythonException try except finally
|
syn keyword pythonException try except finally
|
||||||
syn keyword pythonOperator and in is not or
|
syn keyword pythonOperator and in is not or
|
||||||
|
|
||||||
@@ -221,7 +222,7 @@ syn match pythonBinError "\<0[bB][01]*[2-9]\d*\>" display
|
|||||||
|
|
||||||
if exists("python_highlight_builtins") && python_highlight_builtins != 0
|
if exists("python_highlight_builtins") && python_highlight_builtins != 0
|
||||||
" Builtin functions, types and objects
|
" Builtin functions, types and objects
|
||||||
syn keyword pythonBuiltinObj True False Ellipsis None NotImplemented
|
syn keyword pythonBuiltinObj Ellipsis NotImplemented
|
||||||
syn keyword pythonBuiltinObj __debug__ __doc__ __file__ __name__ __package__
|
syn keyword pythonBuiltinObj __debug__ __doc__ __file__ __name__ __package__
|
||||||
|
|
||||||
syn keyword pythonBuiltinFunc __import__ abs all any ascii
|
syn keyword pythonBuiltinFunc __import__ abs all any ascii
|
||||||
|
|||||||
Reference in New Issue
Block a user