-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Indentation after importing operators #12
Comments
I have a fix for this, which I will submit once #37 is merged. |
@tpapp did you ever submit this fix? |
No. I have a branch which is severely outdated and provides a partial fix, if no one wants to take it up I will do it if #87 is merged. |
Sorry about the dup. To solve this, can’t we just check if the line stars with Line 508 in 839726a
|
Note that the title is not completely accurate. It also applies to the |
Hum, I see. However, since the case: import Base: * should be way more common than the other, can we implement this temporary fix until we have a full parser? EDIT: By the way, am I missing something, or the second case will always happen if an operator appears after a If I am right, then we can add two checks to that function: if the line started with |
I gave a try to solve it, but now I understand why we need a full parser. The indentation of lines after an Line 543 in 839726a
instead of the previous function I marked. However, it does not seem easy to separate the code that mark a code line “unfinished” with that code that search for continuation in |
This issue is not present in tree-sitter implementation: module A
import Base: *
a = 1
b = *
c = 2
end |
End of line operators doesn't always require indentation on the next line
I guess this was introduced in JuliaLang/julia#15156. Not sure this can be fixed without a full parser though...
The text was updated successfully, but these errors were encountered: