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

Functions inside inline assembly blocks don't get indented #356

Closed
Mouradif opened this issue Mar 19, 2023 · 1 comment
Closed

Functions inside inline assembly blocks don't get indented #356

Mouradif opened this issue Mar 19, 2023 · 1 comment

Comments

@Mouradif
Copy link

Code like this:

assembly {
    let isInvalidUriChar := or(
        or(
            lt(char, 33), // lower than "!"
            gt(char, 122) // higher than "z"
        ),
        or(
            or(
                eq(char, 37), // "%"
                or(
                    eq(char, 60), // "<"
                    eq(char, 62) // ">"
                )
            ),
            or(
                and(gt(char, 90), lt(char, 95)), // "[\]^"
                eq(char, 96) // "`"
            )
        )
    )

}

will get auto-indented like this:

assembly {
    let isInvalidUriChar := or(
    or(
    lt(char, 33), // lower than "!"
    gt(char, 122) // higher than "z"
    ),
    or(
    or(
    eq(char, 37), // "%"
    or(
    eq(char, 60), // "<"
    eq(char, 62) // ">"
    )
    ),
    or(
    and(gt(char, 90), lt(char, 95)), // "[\]^"
    eq(char, 96) // "`"
    )
    )
    )

}
@jonahcui
Copy link
Contributor

CleanShot 2023-09-15 at 16 43 35@2x

I think this bug has been fixed. The code is working correctly now.

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

3 participants