Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

pretty printing is wrong for tabs #205

Open
jyn514 opened this issue Jan 19, 2020 · 1 comment
Open

pretty printing is wrong for tabs #205

jyn514 opened this issue Jan 19, 2020 · 1 comment
Labels
bug Something isn't working ui Helpful for user experience when seeing error or warnings

Comments

@jyn514
Copy link
Owner

jyn514 commented Jan 19, 2020

Tabs should be normalized to (4 or 8) spaces before printing; tabs should count as (4 or 8) characters when calculating comments.

void f() {
	void g() { return 1; }
	return;
}
<stdin>:2:7: error: invalid program: functions cannot be nested. hint: try declaring g as `static` at file scope
	void g() { return 1; }
      ^
@jyn514 jyn514 added ui Helpful for user experience when seeing error or warnings bug Something isn't working labels Jan 19, 2020
@jyn514
Copy link
Owner Author

jyn514 commented Jan 19, 2020

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working ui Helpful for user experience when seeing error or warnings
Projects
None yet
Development

No branches or pull requests

1 participant