Compare commits

...

3 Commits

Author SHA1 Message Date
jtmr05
519c977d32 Merge 92fcddd152 into f5393cfee0 2024-12-10 11:39:25 -05:00
Haim
f5393cfee0 Update README.md (#861)
Some checks failed
Vim Polyglot CI / test (push) Has been cancelled
Fix parenthesis missing, thus logo was not showing up
2024-12-04 23:22:43 +01:00
jtmr05
92fcddd152 Update python.vim
Highlight `match` and `case` soft keywords
2023-04-19 15:29:42 +00:00
2 changed files with 3 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ 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 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 ![vim-polyglot](https://i.imgur.com/9RxQK6k.png)
A collection of language packs for Vim. A collection of language packs for Vim.

View File

@@ -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.