Browse Source

Reorganized keywords

Dmitry Vasiliev 15 years ago
parent
commit
69dcbc3482
2 changed files with 6 additions and 3 deletions
  1. 2
    0
      CHANGES.txt
  2. 4
    3
      python3.0.vim

+ 2
- 0
CHANGES.txt View File

@@ -4,6 +4,8 @@ Revision 3.0.0 (2008-09-?):
4 4
     - Updated support for str.format;
5 5
     - Added new builtins introduced in Python 2.6: "ascii", "exec",
6 6
       "memoryview", "print";
7
+    - Added new keyword "nonlocal";
8
+    - Removed exception "StandardError";
7 9
     - Removed builtins: "apply", "basestring", "buffer", "callable", "coerce",
8 10
       "execfile", "file", "help", "intern", "long", "raw_input", "reduce",
9 11
       "reload", "unichr", "unicode", "xrange";

+ 4
- 3
python3.0.vim View File

@@ -96,16 +96,17 @@ endif
96 96
 
97 97
 " Keywords
98 98
 syn keyword pythonStatement	break continue del
99
-syn keyword pythonStatement	exec return
99
+syn keyword pythonStatement	exec return as
100 100
 syn keyword pythonStatement	pass raise
101 101
 syn keyword pythonStatement	global assert
102 102
 syn keyword pythonStatement	lambda yield
103 103
 syn keyword pythonStatement	with nonlocal
104
+syn keyword pythonStatement	False None True
104 105
 syn keyword pythonStatement	def class nextgroup=pythonFunction skipwhite
105 106
 syn match   pythonFunction	"[a-zA-Z_][a-zA-Z0-9_]*" display contained
106 107
 syn keyword pythonRepeat	for while
107 108
 syn keyword pythonConditional	if elif else
108
-syn keyword pythonImport	import from as
109
+syn keyword pythonImport	import from
109 110
 syn keyword pythonException	try except finally
110 111
 syn keyword pythonOperator	and in is not or
111 112
 
@@ -221,7 +222,7 @@ syn match   pythonBinError	"\<0[bB][01]*[2-9]\d*\>" display
221 222
 
222 223
 if exists("python_highlight_builtins") && python_highlight_builtins != 0
223 224
   " Builtin functions, types and objects
224
-  syn keyword pythonBuiltinObj	True False Ellipsis None NotImplemented
225
+  syn keyword pythonBuiltinObj	Ellipsis NotImplemented
225 226
   syn keyword pythonBuiltinObj	__debug__ __doc__ __file__ __name__ __package__
226 227
 
227 228
   syn keyword pythonBuiltinFunc	__import__ abs all any ascii