We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ee3f0 commit 10c3c0eCopy full SHA for 10c3c0e
syntax/python.vim
@@ -168,8 +168,8 @@ syn keyword pythonImport import
168
syn keyword pythonException try except finally
169
syn keyword pythonOperator and in is not or
170
171
-syn match pythonStatement "\<yield\>" display
172
-syn match pythonImport "\<from\>" display
+syn match pythonStatement "^\s*yield\>" display
+syn match pythonImport "^\s*from\>" display
173
174
if s:Python2Syntax()
175
if !s:Enabled("g:python_print_as_function")
0 commit comments