Skip to content

Few proposals #7

@monkoose

Description

@monkoose

First

Can we add some variable to enclose new(different from hdima/python-syntax)
self and cls in if statement? So people who do not need them can easily
disabable their highlight. Myself i actually use this highlight, but we need to
think about all users.

Second

Do you mind adding extra operators highlight group which you can find in
klen/python-mode syntax.
It looks like this

syn match pythonExtraOperator "\%([~!^&|/%+-]\|\%(class\s*\)\@<!<<\|<=>\|<=\|\%(<\|\<class\s\+\u\w*\s*\)\@<!<[^<]\@=\|===\|==\|=\~\|>>\|>=\|=\@<!>\|\.\.\.\|\.\.\|::\)"
syn match pythonExtraPseudoOperator "\%(-=\|/=\|\*\*=\|\*=\|&&=\|&=\|&&\|||=\||=\|||\|%=\|+=\|!\~\|!=\)"
syn match pythonExtraOperator "\%(=\)"
syn match pythonExtraOperator "\%(\*\|\*\*\)"

HiLink pythonExraOperator    Operator
HiLink pythonExtraPseudoOperator   Operator

You can check more at https://github.com/python-mode/python-mode/blob/develop/syntax/python.vim
I think with variable too, so people who need to highlght => == etc, can
turn them on.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions