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

render post expr blocks better #20871

Merged
merged 3 commits into from
Nov 22, 2022
Merged

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Nov 17, 2022

refs #17292 "bug 5"

Original issue mentions *a: b but there is a common use of this syntax in the form of --define:abc. With this patch this is correctly rendered. Also multiple post expr blocks of different kinds are supported.

Originally part of #20071, StmtListExpr with semicolons in that PR is not included.

@Araq
Copy link
Member

Araq commented Nov 18, 2022

Good work but you need to adapt a couple of tests:

tests/errmsgs/twrongcolon.nim

tests/arc/topt_no_cursor.nim

tests/arc/topt_wasmoved_destroy_pairs.nim

tests/destructor/tv2_cast.nim

@metagn
Copy link
Collaborator Author

metagn commented Nov 18, 2022

Fixed

@Varriount Varriount requested a review from Araq November 21, 2022 20:01
@Varriount Varriount added the Requires Araq To Merge PR should only be merged by Araq label Nov 21, 2022
@Araq Araq merged commit 5adfaa2 into nim-lang:devel Nov 22, 2022
@github-actions
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 5adfaa2

Hint: mm: orc; opt: speed; options: -d:release
165180 lines; 10.548s; 614.355MiB peakmem

survivorm pushed a commit to survivorm/Nim that referenced this pull request Feb 28, 2023
* render post expr blocks

* remove pointless diff

* fix PR split mistake
capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
* render post expr blocks

* remove pointless diff

* fix PR split mistake
bung87 pushed a commit to bung87/Nim that referenced this pull request Jul 29, 2023
* render post expr blocks

* remove pointless diff

* fix PR split mistake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Requires Araq To Merge PR should only be merged by Araq
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants