Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upmatrix multiplication vs decorator #42
Open
Labels
Comments
Anything wrong with https://github.com/vim/vim/blob/44d6652d561d628d12e3ff7f6636ea7d1f805ced/runtime/syntax/python.vim#L115? Performance I guess? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, something like
incorrectly highlights
bar
as a decorator, when it is in fact an operand of a matrix multiplication (note that this code conforms to the "new" PEP8 which suggests breaking before operators).While a general solution may be tricky, it seems reasonable to only highlight as decorators when the
@
is immediately followed by a letter (or underscore), without spaces in between. Spaces after the@
in a decorator are legal, but I have never seen cases where they are used...