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

error with dealing the 'end' in index position #112

Open
changlichun opened this issue Jan 14, 2024 · 1 comment
Open

error with dealing the 'end' in index position #112

changlichun opened this issue Jan 14, 2024 · 1 comment

Comments

@changlichun
Copy link

The formater does not perform well in such a snippet

for i = 1:22

    if i > 3 && i < a(end - 1)
        break
    else
        continue
    end

end

Wrongly format to

for i = 1:22

    if i > 3 && i < a( end - 1)
    break
else
    continue
end

end

In addition, behave well in quite a similar code

for i = 1:22

    if i > 3 && i < a(end)
        break
    else
        continue
    end

end
@akshatd
Copy link

akshatd commented Jul 11, 2024

I am having the same issue, would be great if this is fixed

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

2 participants