Ver código fonte

Add self highlight

Lowe Thiderman 10 anos atrás
pai
commit
cbf913eb51
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2
    0
      syntax/python.vim

+ 2
- 0
syntax/python.vim Ver arquivo

@@ -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