Skip to content

yield is repeated two times and match whitespaces before yield #6

@monkoose

Description

@monkoose
syn keyword pythonStatement     pass yield

syn match pythonStatement       '\s*\([.,]\)\@<!\<yield\>'

With current state it is matching whitespaces before yield. Do not recognizable if you have simple color theme, but if you have underline or bg(for pythonStatement) different from Normal - it will be noticeble.

And with new update we have
syn match pythonStetement '\s*[.,]\@<!\<yield\>'
Why do we even need this syn match beside syn keyword? Describe please.
If so i really think it should be something like this
syn match pythonStatement '\(\s*[.,]\)\@<!\<yield\>' But i'm still not sure why do we need this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions