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

Formatter: consider consecutive macro literals when subformatting #8034

Merged
merged 7 commits into from
Aug 5, 2019

Conversation

asterite
Copy link
Member

@asterite asterite commented Aug 2, 2019

The lexer might produce consecutive macro literals instead of just a single one, so when subformatting consider this case too.

Spotted by @waj

The lexer might produce consecutive macro literals instead of just a
single one, so when subformatting consider this case too.
@asterite asterite added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter labels Aug 2, 2019
@asterite asterite added this to the 0.31.0 milestone Aug 2, 2019
@asterite asterite force-pushed the formatter-inline-multiple branch from 60beb69 to 94077cb Compare August 3, 2019 00:19
@asterite asterite merged commit fd0780c into crystal-lang:master Aug 5, 2019
@asterite asterite deleted the formatter-inline-multiple branch August 5, 2019 21:49
@bcardiff bcardiff modified the milestones: 0.31.0, 0.30.1 Aug 8, 2019
bcardiff pushed a commit that referenced this pull request Aug 8, 2019
)

* Formatter: consider consecutive macro literals when subformatting

The lexer might produce consecutive macro literals instead of just a
single one, so when subformatting consider this case too.

* Formatter: correctly subformat comments

* Formatter: track def args when subformatting

* Formatter: consider content after comment when subformatting

* Formatter: consider nested macros when subformatting

* Run formatter

* fixup! Formatter: consider nested macros when subformatting
dnamsons pushed a commit to dnamsons/crystal that referenced this pull request Jan 10, 2020
…ystal-lang#8034)

* Formatter: consider consecutive macro literals when subformatting

The lexer might produce consecutive macro literals instead of just a
single one, so when subformatting consider this case too.

* Formatter: correctly subformat comments

* Formatter: track def args when subformatting

* Formatter: consider content after comment when subformatting

* Formatter: consider nested macros when subformatting

* Run formatter

* fixup! Formatter: consider nested macros when subformatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants