From df86a5027bdc8e3dd6a9e50b6c94f5d2e6ac4f22 Mon Sep 17 00:00:00 2001 From: joaquinbogado Date: Sun, 9 Jan 2022 09:04:41 -0300 Subject: [PATCH] Added support for match and case keywords --- CHANGES.txt | 5 +++++ syntax/python.vim | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 2d3b520..6b611ea 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/syntax/python.vim b/syntax/python.vim index e963628..1d4f6a6 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -31,6 +31,7 @@ " Elizabeth Myers " Ihor Gorobets " Jeroen Ruigrok van der Werven +" Joaquin Bogado " John Eikenberry " Joongi Kim " Marc Weber @@ -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