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

Hey @7z99 - sorry for the delay here. Are you still experiencing this issue?

Hey, yeah it appears to still be happening.

Hi @7z99 ,

Thanks for flagging this! This is a limitation of the current formatter. We are planning a next-gen formatter and working on providing a better solution for this.

I’ve moved this request to the post:
https://devforum.roblox.com/t/collecting-suggestions-for-next-gen-script-editor-formatter/3555458

Please feel free to share more suggestions there.

Thank you!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.