Comments right above an `else` or `elseif` clause should not be indented
Closed this issue · 1 comments
hankertrix commented
Currently, stylua wrongly indents comments right above an else clause, like this:
-- Check for condition
if condition then
print("Condition satisfied")
-- Otherwise
else
print("Condition not satisfied")
end
The expected output should be:
-- Check for condition
if condition then
print("Condition satisfied")
-- Otherwise
else
print("Condition not satisfied")
end
hankertrix commented
This isn't an issue. Turns out lua-language-server and stylua were competing to format my code and the result was the weird formatting above.
Sorry about the noise.