浏览代码

Merge branch 'python-include-for-pyrex-vim'

Dmitry Vasiliev 9 年前
父节点
当前提交
652e3687eb
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      syntax/python.vim

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

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