瀏覽代碼

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