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

Extra indentation is added before opening paren after = sign. #534

Closed
nadako opened this issue Sep 27, 2019 · 0 comments
Closed

Extra indentation is added before opening paren after = sign. #534

nadako opened this issue Sep 27, 2019 · 0 comments
Labels
bug Something isn't working indentation Indentation is incorrect tokentree requires fix in tokentree

Comments

@nadako
Copy link

nadako commented Sep 27, 2019

Input file

class Main {
	static function main() {
		var a = true;
		(a);
	}
}

Broken output

class Main {
	static function main() {
		var a = true;
			(a);
	}
}

Expected output

class Main {
	static function main() {
		var a = true;
		(a);
	}
}

This also reproduces with just a = true assignment, without var.

@AlexHaxe AlexHaxe added bug Something isn't working indentation Indentation is incorrect tokentree requires fix in tokentree labels Sep 27, 2019
AlexHaxe added a commit to AlexHaxe/haxe-formatter that referenced this issue Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working indentation Indentation is incorrect tokentree requires fix in tokentree
Projects
None yet
Development

No branches or pull requests

2 participants