mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-09 12:03:53 -05:00
Update python.vim
Highlight `match` and `case` soft keywords
This commit is contained in:
@@ -85,6 +85,8 @@ if s:Enabled('g:python_highlight_class_vars')
|
|||||||
endif
|
endif
|
||||||
syn keyword pythonRepeat for while
|
syn keyword pythonRepeat for while
|
||||||
syn keyword pythonConditional if elif else
|
syn keyword pythonConditional if elif else
|
||||||
|
syn match pythonConditional "^\s*\zscase\%(\s\+.*:.*$\)\@="
|
||||||
|
syn match pythonConditional "^\s*\zsmatch\%(\s\+.*:\s*\%(#.*\)\=$\)\@="
|
||||||
syn keyword pythonException try except finally
|
syn keyword pythonException try except finally
|
||||||
" The standard pyrex.vim unconditionally removes the pythonInclude group, so
|
" The standard pyrex.vim unconditionally removes the pythonInclude group, so
|
||||||
" we provide a dummy group here to avoid crashing pyrex.vim.
|
" we provide a dummy group here to avoid crashing pyrex.vim.
|
||||||
|
|||||||
Reference in New Issue
Block a user