Skip to content

Commit 3f08e2f

Browse files
committed
Add brackets highlight
1 parent 46ce4e2 commit 3f08e2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

syntax/python.vim

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ if s:Enabled('g:python_highlight_all')
5252
call s:EnableByDefault('g:python_highlight_func_calls')
5353
call s:EnableByDefault('g:python_highlight_class_vars')
5454
call s:EnableByDefault('g:python_highlight_operators')
55+
call s:EnableByDefault('g:python_highlight_brackets')
5556
endif
5657

5758
if s:Enabled('g:python_highlight_builtins')
@@ -88,6 +89,9 @@ syn keyword pythonInclude import
8889
syn keyword pythonImport import
8990
syn match pythonRaiseFromStatement '\<from\>'
9091
syn match pythonImport '^\s*\zsfrom\>'
92+
if s:Enabled('g:python_highlight_brackets')
93+
syn match pythonBrackets '[()\[\]{},:]\|->'
94+
endif
9195

9296

9397
if s:Python2Syntax()

0 commit comments

Comments
 (0)