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
@@ -90,6 +91,9 @@ syn keyword pythonInclude import
90
91
syn keyword pythonImport import
91
92
syn match pythonRaiseFromStatement ' \< from\> '
92
93
syn match pythonImport ' ^\s *\z sfrom\> '
94
+ if s: Enabled (' g:python_highlight_logger' )
95
+ syn keyword pythonLog log _log __log LOG _LOG __LOG logger
96
+ endif
93
97
if s: Enabled (' g:python_highlight_brackets' )
94
98
syn match pythonBrackets ' [()\[\] {},:]\| ->'
95
99
endif
@@ -514,6 +518,10 @@ if v:version >= 508 || !exists('did_python_syn_inits')
514
518
HiLink pythonClass Structure
515
519
HiLink pythonClassVar Identifier
516
520
521
+ if s: Enabled (' g:python_highlight_logger' )
522
+ HiLink pythonLog Identifier
523
+ endif
524
+
517
525
delcommand HiLink
518
526
endif
519
527
You can’t perform that action at this time.
0 commit comments