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
2 changed files with 7 additions and 1 deletions

View File

@@ -1,4 +1,8 @@
![vim-polyglot](https://i.imgur.com/9RxQK6k.png)
This is my top-starred repository on Github, so I've decided to put this ad here:
If you work for big corp and seek consulting, please visit following repository: https://github.com/sheerun/consultation
![vim-polyglot](https://i.imgur.com/9RxQK6k.png
A collection of language packs for Vim.

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.