Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Open
@MisanthropicBit

Description

@MisanthropicBit
Issue body actions

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.