Skip to content

Commit 5d79f24

Browse files
committed
Add match/case highlighting
1 parent dab2370 commit 5d79f24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

syntax/python.vim

+2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ else
105105
syn match pythonStatement '\<async\s\+def\>' nextgroup=pythonFunction skipwhite
106106
syn match pythonStatement '\<async\s\+with\>'
107107
syn match pythonStatement '\<async\s\+for\>'
108+
syn match pythonConditional '^\s*\zsmatch\ze\s\+.\+:'
109+
syn match pythonConditional '^\s+\zscase\ze\s\+.\+:'
108110
syn cluster pythonExpression contains=pythonStatement,pythonRepeat,pythonConditional,pythonOperator,pythonNumber,pythonHexNumber,pythonOctNumber,pythonBinNumber,pythonFloat,pythonString,pythonFString,pythonRawString,pythonRawFString,pythonBytes,pythonBoolean,pythonNone,pythonSingleton,pythonBuiltinObj,pythonBuiltinFunc,pythonBuiltinType,pythonClassVar
109111
endif
110112

0 commit comments

Comments
 (0)