-
Notifications
You must be signed in to change notification settings - Fork 35
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
Fix function indentation for new override syntax #30
Comments
Hmm, well spotted. This is a tough one given the way the indenter is currently implemented. Right now, we punt to the existing Vim shell indenter if we didn't pick up on the python function definition, but as a result, it means that initial indent is purely handled by the shell indenter, which doesn't support colons in definitions. I think we can easily fix this for python functions by correcting the pattern for bbPyFuncDef, I'll see about doing that. Fixing it for shell will involve shifting the handling the initial indent from shell.vim to us, if that's possible. I'll look into fixing the python one in the next day or two, the other may have to wait until I get more time, or pull in Chris Laplante if he's still around. |
Sounds good! I suspected that it is not so easy. I was looking at the indent.vim, but did not understand a thing. It is not urgent I guess, so take your time.
… Am 06.06.2022 um 20:46 schrieb Christopher Larson ***@***.***>:
Hmm, well spotted. This is a tough one given the way the indenter is currently implemented. Right now, we punt to the existing Vim shell indenter if we didn't pick up on the python function definition, but as a result, it means that initial indent is purely handled by the shell indenter, which doesn't support colons in definitions. I think we can easily fix this for python functions by correcting the pattern for bbPyFuncDef, I'll see about doing that. Fixing it for shell will involve shifting the handling the initial indent from shell.vim to us, if that's possible.
I'll look into fixing the python one in the next day or two, the other may have to wait until I get more time, or pull in Chris Laplante if he's still around.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
The new override syntax is not completely fixed for functions yet. The indentation works with
but
will not get indented right.
The text was updated successfully, but these errors were encountered: