mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-08 21:54:48 +08:00
'print' now always the function
This commit is contained in:
@@ -57,9 +57,6 @@
|
|||||||
"
|
"
|
||||||
" For fast machines:
|
" For fast machines:
|
||||||
" python_slow_sync
|
" python_slow_sync
|
||||||
"
|
|
||||||
" For "print" builtin as function:
|
|
||||||
" python_print_as_function
|
|
||||||
|
|
||||||
" For version 5.x: Clear all syntax items
|
" For version 5.x: Clear all syntax items
|
||||||
" For version 6.x: Quit when a syntax file was already loaded
|
" For version 6.x: Quit when a syntax file was already loaded
|
||||||
@@ -112,10 +109,6 @@ syn keyword pythonImport import from as
|
|||||||
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
|
||||||
|
|
||||||
if !exists("python_print_as_function") || python_print_as_function == 0
|
|
||||||
syn keyword pythonStatement print
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Decorators (new in Python 2.4)
|
" Decorators (new in Python 2.4)
|
||||||
syn match pythonDecorator "@" display nextgroup=pythonFunction skipwhite
|
syn match pythonDecorator "@" display nextgroup=pythonFunction skipwhite
|
||||||
|
|
||||||
@@ -241,10 +234,6 @@ if exists("python_highlight_builtins") && python_highlight_builtins != 0
|
|||||||
syn keyword pythonBuiltinFunc repr reversed round set setattr
|
syn keyword pythonBuiltinFunc repr reversed round set setattr
|
||||||
syn keyword pythonBuiltinFunc slice sorted staticmethod str sum super tuple
|
syn keyword pythonBuiltinFunc slice sorted staticmethod str sum super tuple
|
||||||
syn keyword pythonBuiltinFunc type vars zip
|
syn keyword pythonBuiltinFunc type vars zip
|
||||||
|
|
||||||
if exists("python_print_as_function") && python_print_as_function != 0
|
|
||||||
syn keyword pythonBuiltinFunc print
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists("python_highlight_exceptions") && python_highlight_exceptions != 0
|
if exists("python_highlight_exceptions") && python_highlight_exceptions != 0
|
||||||
|
|||||||
Reference in New Issue
Block a user