Skip to content

Commit 10c3c0e

Browse files
author
Michael Doronin
committed
from keyword highlighted only if it is at start of line
1 parent b8ee3f0 commit 10c3c0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/python.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ syn keyword pythonImport import
168168
syn keyword pythonException try except finally
169169
syn keyword pythonOperator and in is not or
170170

171-
syn match pythonStatement "\<yield\>" display
172-
syn match pythonImport "\<from\>" display
171+
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")

0 commit comments

Comments
 (0)