瀏覽代碼

Add self highlight

Lowe Thiderman 10 年之前
父節點
當前提交
cbf913eb51
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      syntax/python.vim

+ 2
- 0
syntax/python.vim 查看文件

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