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
 syn keyword pythonImport        import
157
 syn keyword pythonImport        import
158
 syn keyword pythonException     try except finally
158
 syn keyword pythonException     try except finally
159
 syn keyword pythonOperator      and in is not or
159
 syn keyword pythonOperator      and in is not or
160
+syn keyword pythonSelf          self
160
 
161
 
161
 syn match pythonStatement   "\<yield\>" display
162
 syn match pythonStatement   "\<yield\>" display
162
 syn match pythonImport      "\<from\>" display
163
 syn match pythonImport      "\<from\>" display
486
   HiLink pythonRepeat           Repeat
487
   HiLink pythonRepeat           Repeat
487
   HiLink pythonException        Exception
488
   HiLink pythonException        Exception
488
   HiLink pythonOperator         Operator
489
   HiLink pythonOperator         Operator
490
+  HiLink pythonSelf             Special
489
 
491
 
490
   HiLink pythonDecorator        Define
492
   HiLink pythonDecorator        Define
491
   HiLink pythonDottedName       Function
493
   HiLink pythonDottedName       Function