File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -168,8 +168,8 @@ syn keyword pythonImport import
168168syn keyword pythonImport from
169169syn keyword pythonException try except finally
170170syn keyword pythonOperator and in is not or
171+ syn match pythonStatement " ^\s *yield\> " display
171172
172- syn match pythonStatement " ^\s *yield\> " display
173173
174174if s: Python2Syntax ()
175175 if ! s: Enabled (" g:python_print_as_function" )
@@ -179,9 +179,9 @@ if s:Python2Syntax()
179179 syn match pythonFunction " [a-zA-Z_][a-zA-Z0-9_]*" nextgroup =FunctionParameters display contained
180180else
181181 syn keyword pythonStatement as nonlocal
182- syn match pythonStatement " \< yield\s\ + from\ >" display
182+ syn match pythonStatement " \v\s * <yield\s +from>" display
183183 syn match pythonFunction " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
184- syn keyword pythonStatement await
184+ syn match pythonStatement " \v ( \. )@<!< await> "
185185 syn match pythonStatement " \< async\s\+ def\> " nextgroup =pythonFunction skipwhite
186186 syn match pythonStatement " \< async\s\+ with\> " display
187187 syn match pythonStatement " \< async\s\+ for\> " display
You can’t perform that action at this time.
0 commit comments