소스 검색

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 10 년 전
부모
커밋
67b6d85258
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3
    0
      syntax/python.vim

+ 3
- 0
syntax/python.vim 파일 보기

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