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

If a CODE_OPEN_TAG token is followed by a LITERAL token, break before writing the CODE_OPEN_TAG token if writing it will result in us eating up the remainder of the current line. #4

Open
amorimvd2 opened this issue Aug 22, 2021 · 1 comment
Assignees

Comments

@amorimvd2
Copy link
Owner

If a CODE_OPEN_TAG token is followed by a LITERAL token, break before writing the CODE_OPEN_TAG token if writing it will result in us eating up the remainder of the current line.

Partially fixes #84.

I’m not super happy about the breakBeforeIfAtEndOfLine name, but that’s the best I could come up with right now. I also wish there was a cleaner way of peeking at the next token.

Originalmente postado por @now em google/google-java-format#638

@amorimvd2 amorimvd2 self-assigned this Aug 22, 2021
@amorimvd2
Copy link
Owner Author

Vamos vq vamos

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