Compare commits

...

2 Commits

Author SHA1 Message Date
jtmr05
2497611829 Merge 92fcddd152 into 692e359ad9 2024-11-29 08:59:39 +00:00
jtmr05
92fcddd152 Update python.vim
Highlight `match` and `case` soft keywords
2023-04-19 15:29:42 +00:00

View File

@@ -85,6 +85,8 @@ if s:Enabled('g:python_highlight_class_vars')
endif
syn keyword pythonRepeat for while
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
" The standard pyrex.vim unconditionally removes the pythonInclude group, so
" we provide a dummy group here to avoid crashing pyrex.vim.