Skip to content

Commit 57cbc96

Browse files
committed
Add brackets highlight
1 parent 48cd0ab commit 57cbc96

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')
@@ -89,6 +90,9 @@ syn keyword pythonInclude import
8990
syn keyword pythonImport import
9091
syn match pythonRaiseFromStatement '\<from\>'
9192
syn match pythonImport '^\s*\zsfrom\>'
93+
if s:Enabled('g:python_highlight_brackets')
94+
syn match pythonBrackets '[()\[\]{},:]\|->'
95+
endif
9296

9397

9498
if s:Python2Syntax()

0 commit comments

Comments
 (0)