Browse Source

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

Dmitry Vasiliev 8 years ago
parent
commit
652e3687eb
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      syntax/python.vim

+ 3
- 0
syntax/python.vim View File

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