Skip to content

Suggestion: Add separate syntax group for async etc. #78

@MisanthropicBit

Description

@MisanthropicBit

First of all, thanks for this awesome project. Really spiced up my Python files!

I was wondering if there are any plans to have separate syntax groups for async and friends? Something like:

syn match   pythonAsyncStatement   '\<\zsasync\ze\s\+def\>' nextgroup=pythonFunction skipwhite
syn match   pythonAsyncStatement   '\<\zsasync\ze\s\+with\>'
syn match   pythonAsyncStatement   '\<\zsasync\ze\s\+for\>'

The benefit would be that colorschemes could bring extra attention to asynchronous statements if they wanted to. By default,
pythonAsyncStatement could link to pythonStatement to achieve the current behaviour.

EDIT: I would be happy to submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions