Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for match and case keywords introduced in python 3.10 #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Revision 3.10 (2022-01-09):

- Add support for 'match' and 'case' keywords introduced in
Python 3.10. Patch by Joaquin Bogado

Revision 3.6.0 (2015-11-XX):

- Fix 'async def' highlighting. Patch by Joongi Kim
Expand Down
2 changes: 2 additions & 0 deletions syntax/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
" Elizabeth Myers
" Ihor Gorobets
" Jeroen Ruigrok van der Werven
" Joaquin Bogado
" John Eikenberry
" Joongi Kim
" Marc Weber
Expand Down Expand Up @@ -159,6 +160,7 @@ syn keyword pythonStatement with
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
syn keyword pythonRepeat for while
syn keyword pythonConditional if elif else
syn keyword pythonConditional match case
" 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
Expand Down