Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5f3ce6a

Browse files
committedNov 18, 2022
Highlight raise as exception
1 parent d9616c9 commit 5f3ce6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎syntax/python.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ endif
7575
"
7676

7777
syn keyword pythonStatement break continue del return pass yield global assert lambda with
78-
syn keyword pythonStatement raise nextgroup=pythonExClass skipwhite
7978
syn keyword pythonStatement def nextgroup=pythonFunction skipwhite
8079
syn keyword pythonStatement class nextgroup=pythonClass skipwhite
8180
if s:Enabled('g:python_highlight_class_vars')
8281
syn keyword pythonClassVar self cls mcs
8382
endif
8483
syn keyword pythonRepeat for while
8584
syn keyword pythonConditional if elif else
86-
syn keyword pythonException try except finally
8785
syn keyword pythonMatch match case
86+
syn keyword pythonException try except finally raise
87+
syn keyword pythonException raise nextgroup=pythonExClass skipwhite
8888
" The standard pyrex.vim unconditionally removes the pythonInclude group, so
8989
" we provide a dummy group here to avoid crashing pyrex.vim.
9090
syn keyword pythonInclude import

0 commit comments

Comments
 (0)
Please sign in to comment.