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

minor NimNode comment repr() regression 1.0.10 to 1.2.9 #16307

Closed
disruptek opened this issue Dec 10, 2020 · 2 comments · Fixed by #19726
Closed

minor NimNode comment repr() regression 1.0.10 to 1.2.9 #16307

disruptek opened this issue Dec 10, 2020 · 2 comments · Fixed by #19726

Comments

@disruptek
Copy link
Contributor

Input

import std/macros

macro bug(x: untyped) =
  echo treeRepr(x)
  echo repr(x)

bug:
  block:
    ## one
    ## two
    ## three

Output

1.0.10

StmtList
  BlockStmt
    Empty
    StmtList
      CommentStmt "one\ntwo\nthree"

block:
  ## one
  ## two
  ## three

1.2.9, 1.4.2, 1.5.1

StmtList
  BlockStmt
    Empty
    StmtList
      CommentStmt "one\ntwo\nthree"

block:
  ## one
       ## two
       ## three
@ringabout
Copy link
Member

caused by 0ac74dd

@ringabout
Copy link
Member

ringabout commented Apr 15, 2022

update: #19726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants