from is keyword and can't be used otherwised

This commit is contained in:
Michael Doronin
2016-11-10 10:37:06 +03:00
parent 10c3c0ece8
commit bd24b62a3f

View File

@@ -165,11 +165,11 @@ syn keyword pythonConditional if elif else
" we provide a dummy group here to avoid crashing pyrex.vim. " we provide a dummy group here to avoid crashing pyrex.vim.
syn keyword pythonInclude import syn keyword pythonInclude import
syn keyword pythonImport import syn keyword pythonImport import
syn keyword pythonImport 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
syn match pythonStatement "^\s*yield\>" display syn match pythonStatement "^\s*yield\>" display
syn match pythonImport "^\s*from\>" display
if s:Python2Syntax() if s:Python2Syntax()
if !s:Enabled("g:python_print_as_function") if !s:Enabled("g:python_print_as_function")
@@ -195,6 +195,7 @@ syn region FunctionParameters start='(' end=')' display contains=
\ pythonClassVaraible, \ pythonClassVaraible,
\ pythonConditional, \ pythonConditional,
\ pythonComment, \ pythonComment,
\ pythonImport,
\ pythonOperator, \ pythonOperator,
\ pythonNumber, \ pythonNumber,
\ pythonNumberError, \ pythonNumberError,