Skip to content

Commit 69dcbc3

Browse files
committed
Reorganized keywords
1 parent 8423af1 commit 69dcbc3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Revision 3.0.0 (2008-09-?):
44
- Updated support for str.format;
55
- Added new builtins introduced in Python 2.6: "ascii", "exec",
66
"memoryview", "print";
7+
- Added new keyword "nonlocal";
8+
- Removed exception "StandardError";
79
- Removed builtins: "apply", "basestring", "buffer", "callable", "coerce",
810
"execfile", "file", "help", "intern", "long", "raw_input", "reduce",
911
"reload", "unichr", "unicode", "xrange";

python3.0.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,17 @@ endif
9696

9797
" Keywords
9898
syn keyword pythonStatement break continue del
99-
syn keyword pythonStatement exec return
99+
syn keyword pythonStatement exec return as
100100
syn keyword pythonStatement pass raise
101101
syn keyword pythonStatement global assert
102102
syn keyword pythonStatement lambda yield
103103
syn keyword pythonStatement with nonlocal
104+
syn keyword pythonStatement False None True
104105
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
105106
syn match pythonFunction "[a-zA-Z_][a-zA-Z0-9_]*" display contained
106107
syn keyword pythonRepeat for while
107108
syn keyword pythonConditional if elif else
108-
syn keyword pythonImport import from as
109+
syn keyword pythonImport import from
109110
syn keyword pythonException try except finally
110111
syn keyword pythonOperator and in is not or
111112

@@ -221,7 +222,7 @@ syn match pythonBinError "\<0[bB][01]*[2-9]\d*\>" display
221222

222223
if exists("python_highlight_builtins") && python_highlight_builtins != 0
223224
" Builtin functions, types and objects
224-
syn keyword pythonBuiltinObj True False Ellipsis None NotImplemented
225+
syn keyword pythonBuiltinObj Ellipsis NotImplemented
225226
syn keyword pythonBuiltinObj __debug__ __doc__ __file__ __name__ __package__
226227

227228
syn keyword pythonBuiltinFunc __import__ abs all any ascii

0 commit comments

Comments
 (0)