Skip to content

Auto-indent for parenthesis #11

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

Open
abingham opened this issue Jan 16, 2018 · 1 comment
Open

Auto-indent for parenthesis #11

abingham opened this issue Jan 16, 2018 · 1 comment

Comments

@abingham
Copy link

It would be nice if the mode would automatically indent multi-line function arguments to the appropriate parenthesis. For example, when I tab-indent the second line in this example I currently get this:

Mux16(a=XWithY, b=InvertedXWithY, sel=no,
out[0..7]=OutLow, out[8..15]=OutHigh, out[15]=ng, out=out);

But I expected to get this:

Mux16(a=XWithY, b=InvertedXWithY, sel=no,
      out[0..7]=OutLow, out[8..15]=OutHigh, out[15]=ng, out=out);

I've done a little bit of this in the past, and I might be able to put some time into this at some point. But I at least wanted to get this onto the issue tracker.

@abingham
Copy link
Author

After looking at the code a bit, I see that the mode does this kind of indentation quite well:

Mux16(
            a=XWithY, b=InvertedXWithY, sel=no,
            out[0..7]=OutLow, out[8..15]=OutHigh, out[15]=ng, out=out);

This is pretty reasonable to me. If you think that this is all that the mode needs to support, I'm fine to close this out.

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

1 participant