Auto Indent is affected by keywords in comments/strings

Automatic indenting breaks if a Lua keyword is contained in a comment or string. I don’t remember when this started happening, just that it’s been frustrating to write Lua source generators/simplifiers for a long time.
Keywords affected by this include then, do, repeat, function, elseif, until, end, (, ), {, and }

Here are a few examples:
Image_614

Image_632

12 Likes

This has been going on for a while and roblox hasn’t done anything about it despite it being brought up before. Really hope roblox fixes this because it’s extremely annoying in some cases.

asd

3 Likes

Hey @Tomarty - thanks for reporting! I’ve created a ticket for this and we are reviewing.

@Tomarty, @Ultimate_Table - we’re putting some dedicated effort into improving the Script Editor so please report any other issues or continued frustrations!

1 Like