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

Formatter incorrectly indents lines beginning with the "begin" keyword #1238

Open
birgersp opened this issue Aug 27, 2021 · 0 comments
Open

Comments

@birgersp
Copy link

It seems that any whitespace in front of the "begin" keyword is ignored. So a line starting with this keyword will be incorrectly indented.

Example formatter input sql:

while (@x < 1)
		begin
	set @x = @x + 1
end

Expected output:

while (@x < 1)
begin
	set @x = @x + 1
end

Actual output (actually identical with input):

while (@x < 1)
		begin
	set @x = @x + 1
end
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

No branches or pull requests

1 participant