Skip to content

Commit 65f6d31

Browse files
committed
Highlight raise as exception
1 parent ee9abbf commit 65f6d31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

syntax/python.vim

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ if s:Enabled('g:python_highlight_class_vars')
8383
endif
8484
syn keyword pythonRepeat for while
8585
syn keyword pythonConditional if elif else
86-
syn keyword pythonException try except finally
86+
syn keyword pythonException try except finally raise
87+
syn keyword pythonException raise nextgroup=pythonExClass skipwhite
8788
" The standard pyrex.vim unconditionally removes the pythonInclude group, so
8889
" we provide a dummy group here to avoid crashing pyrex.vim.
8990
syn keyword pythonInclude import

0 commit comments

Comments
 (0)