Format document on script that contains multiline assignments w/ commas causes warning

Autoformatting a script that has a multi-line assignment that uses commas, causes a warning to occur on both relative and absolute auto-indent rules, if the assignment is to multiple variables or otherwise uses a comma to separate arguments. This does not apply when the assignment spans multiple lines using and/or operators.

Assignments like this will cause it to happen:

local a,b = true,
false

Assignments like this will not cause it to happen:

local a = true or
false

I have every beta featured enabled aside from multi-cursor.

Not exclusive to any specific game.

Expected behavior

Formatting the document should not cause any warnings telling me to indent to silence.

Thanks for the report! We’ll follow up when we have an update for you.

2 Likes