diff --git a/syntax/python.vim b/syntax/python.vim index ee2c6b5..afd6a8d 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -70,15 +70,15 @@ syn keyword pythonStatement with syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite syn keyword pythonRepeat for while syn keyword pythonConditional if elif else -" The standard pyrex.vim unconditionally removes the pythonInclude group, so -" we provide a dummy group here to avoid crashing pyrex.vim. syn keyword pythonException try except finally syn keyword pythonOperator and in is not or syn match pythonStatement '\s*\([.,]\)\@' +" The standard pyrex.vim unconditionally removes the pythonInclude group, so +" we provide a dummy group here to avoid crashing pyrex.vim. syn keyword pythonInclude import syn keyword pythonImport import syn match pythonIdentifier '\v[a-zA-Z_][a-zA-Z0-9_]*' nextgroup=FunctionParameters -syn match pythonRaiseFromStatement 'from\>' +syn match pythonRaiseFromStatement '\' syn match pythonImport '^\s*\zsfrom\>'