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

fmt/make-tree discards comments sometimes #19

Closed
sogaiu opened this issue Jan 19, 2021 · 0 comments · Fixed by #23
Closed

fmt/make-tree discards comments sometimes #19

sogaiu opened this issue Jan 19, 2021 · 0 comments · Fixed by #23

Comments

@sogaiu
Copy link
Contributor

sogaiu commented Jan 19, 2021

Comments are discarded sometimes by fmt/make-tree:

repl:1:> (make-tree "# a comment")
(:top @[])
repl:2:> (make-tree "# a comment\n# another comment")
(:top @[])

Perhaps as long as there is at least one thing which is not a comment nor whitespace this doesn''t happen:

repl:3:> (make-tree "# a comment\n1")
(:top @[(:comment " a comment") (:span "1")])
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

Successfully merging a pull request may close this issue.

1 participant