Skip to content

Commit bd24b62

Browse files
author
Michael Doronin
committed
from is keyword and can't be used otherwised
1 parent 10c3c0e commit bd24b62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

syntax/python.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ syn keyword pythonConditional if elif else
165165
" we provide a dummy group here to avoid crashing pyrex.vim.
166166
syn keyword pythonInclude import
167167
syn keyword pythonImport import
168+
syn keyword pythonImport from
168169
syn keyword pythonException try except finally
169170
syn keyword pythonOperator and in is not or
170171

171172
syn match pythonStatement "^\s*yield\>" display
172-
syn match pythonImport "^\s*from\>" display
173173

174174
if s:Python2Syntax()
175175
if !s:Enabled("g:python_print_as_function")
@@ -195,6 +195,7 @@ syn region FunctionParameters start='(' end=')' display contains=
195195
\ pythonClassVaraible,
196196
\ pythonConditional,
197197
\ pythonComment,
198+
\ pythonImport,
198199
\ pythonOperator,
199200
\ pythonNumber,
200201
\ pythonNumberError,

0 commit comments

Comments
 (0)