File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ if s:Enabled('g:python_highlight_all')
52
52
call s: EnableByDefault (' g:python_highlight_func_calls' )
53
53
call s: EnableByDefault (' g:python_highlight_class_vars' )
54
54
call s: EnableByDefault (' g:python_highlight_operators' )
55
+ call s: EnableByDefault (' g:python_highlight_logger' )
55
56
call s: EnableByDefault (' g:python_highlight_brackets' )
56
57
endif
57
58
@@ -89,6 +90,9 @@ syn keyword pythonInclude import
89
90
syn keyword pythonImport import
90
91
syn match pythonRaiseFromStatement ' \< from\> '
91
92
syn match pythonImport ' ^\s *\z sfrom\> '
93
+ if s: Enabled (' g:python_highlight_logger' )
94
+ syn keyword pythonLog log _log __log LOG _LOG __LOG logger
95
+ endif
92
96
if s: Enabled (' g:python_highlight_brackets' )
93
97
syn match pythonBrackets ' [()\[\] {},:]\| ->'
94
98
endif
@@ -512,6 +516,10 @@ if v:version >= 508 || !exists('did_python_syn_inits')
512
516
HiLink pythonClass Structure
513
517
HiLink pythonClassVar Identifier
514
518
519
+ if s: Enabled (' g:python_highlight_logger' )
520
+ HiLink pythonLog Identifier
521
+ endif
522
+
515
523
delcommand HiLink
516
524
endif
517
525
You can’t perform that action at this time.
0 commit comments