Browse Source

Add self highlight

Lowe Thiderman 9 years ago
parent
commit
cbf913eb51
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      syntax/python.vim

+ 2
- 0
syntax/python.vim View File

@@ -157,6 +157,7 @@ syn keyword pythonConditional   if elif else
157 157
 syn keyword pythonImport        import
158 158
 syn keyword pythonException     try except finally
159 159
 syn keyword pythonOperator      and in is not or
160
+syn keyword pythonSelf          self
160 161
 
161 162
 syn match pythonStatement   "\<yield\>" display
162 163
 syn match pythonImport      "\<from\>" display
@@ -486,6 +487,7 @@ if version >= 508 || !exists("did_python_syn_inits")
486 487
   HiLink pythonRepeat           Repeat
487 488
   HiLink pythonException        Exception
488 489
   HiLink pythonOperator         Operator
490
+  HiLink pythonSelf             Special
489 491
 
490 492
   HiLink pythonDecorator        Define
491 493
   HiLink pythonDottedName       Function