File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ syn keyword pythonInstanceVariable self
154154syn keyword pythonClassVaraible cls
155155syn keyword pythonStatement break continue del
156156syn keyword pythonStatement exec return
157- syn keyword pythonStatement pass
157+ syn keyword pythonStatement pass yield
158158syn keyword pythonStatement raise nextgroup =pythonIdentifier skipwhite
159159syn keyword pythonStatement global assert
160160syn keyword pythonStatement lambda
@@ -171,7 +171,7 @@ syn keyword pythonInclude import
171171syn keyword pythonImport import
172172syn match pythonIdentifier " \v [a-zA-Z_][a-zA-Z0-9_]*" nextgroup =FunctionParameters
173173syn match pythonRaiseFromStatement " from\> "
174- syn match pythonImport " \v ^\s *\z sfrom\z e \s *[a-zA-Z_][a-zA-Z0-9_]*( \. [a-zA-Z_][a-zA-Z0-9_]*)* \s *import "
174+ syn match pythonImport " ^\s *\z sfrom\> "
175175
176176
177177
@@ -183,7 +183,6 @@ if s:Python2Syntax()
183183 syn match pythonFunction " [a-zA-Z_][a-zA-Z0-9_]*" nextgroup =FunctionParameters display contained
184184else
185185 syn keyword pythonStatement as nonlocal
186- syn match pythonStatement " \v\s *<yield\s +from>"
187186 syn match pythonStatement " \v (\. )@<!<await>"
188187 syn match pythonFunction " [a-zA-Z_][a-zA-Z0-9_]*" nextgroup =FunctionParameters display contained
189188 syn match pythonStatement " \< async\s\+ def\> " nextgroup =pythonFunction skipwhite
You can’t perform that action at this time.
0 commit comments