mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-08 13:44:48 +08:00
Move comment to right position
This commit is contained in:
@@ -70,15 +70,15 @@ syn keyword pythonStatement with
|
|||||||
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
|
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
|
||||||
syn keyword pythonRepeat for while
|
syn keyword pythonRepeat for while
|
||||||
syn keyword pythonConditional if elif else
|
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 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\>'
|
syn match pythonStatement '\s*\([.,]\)\@<!\<yield\>'
|
||||||
|
" 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 pythonInclude import
|
||||||
syn keyword pythonImport import
|
syn keyword pythonImport import
|
||||||
syn match pythonIdentifier '\v[a-zA-Z_][a-zA-Z0-9_]*' nextgroup=FunctionParameters
|
syn match pythonIdentifier '\v[a-zA-Z_][a-zA-Z0-9_]*' nextgroup=FunctionParameters
|
||||||
syn match pythonRaiseFromStatement 'from\>'
|
syn match pythonRaiseFromStatement '\<from\>'
|
||||||
syn match pythonImport '^\s*\zsfrom\>'
|
syn match pythonImport '^\s*\zsfrom\>'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user