StyLua icon indicating copy to clipboard operation
StyLua copied to clipboard

Comments right above an `else` or `elseif` clause should not be indented

Open hankertrix opened this issue 6 months ago • 0 comments

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 avatar Aug 14 '24 09:08 hankertrix