Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MisanthropicBit opened this issue Jan 8, 2021 · 0 comments
Open

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

MisanthropicBit opened this issue Jan 8, 2021 · 0 comments

Comments

@MisanthropicBit
Copy link

MisanthropicBit commented Jan 8, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant