6666" Option names used by the script
6767" -------------------------------
6868"
69+ " python_highlight_default_punctuation Highlight punctuation that does not
70+ " fall into any syntax group
6971" python_highlight_builtins Highlight builtin functions and
7072" objects
7173" python_highlight_builtin_objs Highlight builtin objects only
@@ -131,6 +133,7 @@ endfunction
131133call s: EnableByDefault (" g:python_slow_sync" )
132134
133135if s: Enabled (" g:python_highlight_all" )
136+ call s: EnableByDefault (" g:python_highlight_default_punctuation" )
134137 call s: EnableByDefault (" g:python_highlight_builtins" )
135138 if s: Enabled (" g:python_highlight_builtins" )
136139 call s: EnableByDefault (" g:python_highlight_builtin_objs" )
@@ -146,6 +149,14 @@ if s:Enabled("g:python_highlight_all")
146149 call s: EnableByDefault (" g:python_print_as_function" )
147150endif
148151
152+ "
153+ " Default punctuation
154+ "
155+
156+ if s: Enabled (" g:python_highlight_default_punctuation" )
157+ syn match pythonPunctuation " [^A-Za-z0-9_]"
158+ endif
159+
149160"
150161" Keywords
151162"
@@ -495,6 +506,8 @@ if version >= 508 || !exists("did_python_syn_inits")
495506 command -nargs =+ HiLink hi def link <args>
496507 endif
497508
509+ HiLink pythonPunctuation Special
510+
498511 HiLink pythonStatement Statement
499512 HiLink pythonImport Include
500513 HiLink pythonFunction Function
0 commit comments