ソースを参照

Dummy pythonInclude group to keep pyrex.vim happy.

(I don't know how to create an empty group so I just put back "import" into
it.)
Antony Lee 9 年 前
コミット
67b6d85258
共有1 個のファイルを変更した3 個の追加0 個の削除を含む
  1. 3
    0
      syntax/python.vim

+ 3
- 0
syntax/python.vim ファイルの表示

@@ -157,6 +157,9 @@ syn keyword pythonStatement     with
157 157
 syn keyword pythonStatement     def class nextgroup=pythonFunction skipwhite
158 158
 syn keyword pythonRepeat        for while
159 159
 syn keyword pythonConditional   if elif else
160
+" The standard pyrex.vim unconditionally removes the pythonInclude group, so
161
+" we provide a dummy group here to avoid crashing pyrex.vim.
162
+syn keyword pythonInclude       import
160 163
 syn keyword pythonImport        import
161 164
 syn keyword pythonException     try except finally
162 165
 syn keyword pythonOperator      and in is not or