|
|
|
|
57
|
"
|
57
|
"
|
58
|
" For fast machines:
|
58
|
" For fast machines:
|
59
|
" python_slow_sync
|
59
|
" python_slow_sync
|
60
|
-"
|
|
|
61
|
-" For "print" builtin as function:
|
|
|
62
|
-" python_print_as_function
|
|
|
63
|
|
60
|
|
64
|
" For version 5.x: Clear all syntax items
|
61
|
" For version 5.x: Clear all syntax items
|
65
|
" For version 6.x: Quit when a syntax file was already loaded
|
62
|
" For version 6.x: Quit when a syntax file was already loaded
|
|
|
|
|
112
|
syn keyword pythonException try except finally
|
109
|
syn keyword pythonException try except finally
|
113
|
syn keyword pythonOperator and in is not or
|
110
|
syn keyword pythonOperator and in is not or
|
114
|
|
111
|
|
115
|
-if !exists("python_print_as_function") || python_print_as_function == 0
|
|
|
116
|
- syn keyword pythonStatement print
|
|
|
117
|
-endif
|
|
|
118
|
-
|
|
|
119
|
" Decorators (new in Python 2.4)
|
112
|
" Decorators (new in Python 2.4)
|
120
|
syn match pythonDecorator "@" display nextgroup=pythonFunction skipwhite
|
113
|
syn match pythonDecorator "@" display nextgroup=pythonFunction skipwhite
|
121
|
|
114
|
|
|
|
|
|
241
|
syn keyword pythonBuiltinFunc repr reversed round set setattr
|
234
|
syn keyword pythonBuiltinFunc repr reversed round set setattr
|
242
|
syn keyword pythonBuiltinFunc slice sorted staticmethod str sum super tuple
|
235
|
syn keyword pythonBuiltinFunc slice sorted staticmethod str sum super tuple
|
243
|
syn keyword pythonBuiltinFunc type vars zip
|
236
|
syn keyword pythonBuiltinFunc type vars zip
|
244
|
-
|
|
|
245
|
- if exists("python_print_as_function") && python_print_as_function != 0
|
|
|
246
|
- syn keyword pythonBuiltinFunc print
|
|
|
247
|
- endif
|
|
|
248
|
endif
|
237
|
endif
|
249
|
|
238
|
|
250
|
if exists("python_highlight_exceptions") && python_highlight_exceptions != 0
|
239
|
if exists("python_highlight_exceptions") && python_highlight_exceptions != 0
|