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
 syn keyword pythonStatement     def class nextgroup=pythonFunction skipwhite
158
 syn keyword pythonStatement     def class nextgroup=pythonFunction skipwhite
159
 syn keyword pythonRepeat        for while
159
 syn keyword pythonRepeat        for while
160
 syn keyword pythonConditional   if elif else
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
 syn keyword pythonImport        import
164
 syn keyword pythonImport        import
162
 syn keyword pythonException     try except finally
165
 syn keyword pythonException     try except finally
163
 syn keyword pythonOperator      and in is not or
166
 syn keyword pythonOperator      and in is not or