Double closing bracket for tables causes wrong indentation

Basicly, if you have a table like so

local TableVariable = {
    HelloWorld = {"Hello","World"}
}

You would obviously do

TableVariable[HelloWorld[1]]

and

TableVariable[HelloWorld[2]]

For some reason, this messes up the indentation automation, as you can see in this gif.

I feel like this is because the program thinks that it’s the ending of a multiline string

[[
Text 
more text
]]

Because adding a space like so in between the ]] fixes the weird indentation. https://i.imgur.com/Ejk2l6t.png

Hopefully this is enough information to solve this bug.

(Edit: I know in this example i can just do TableVariable.HelloWorld[1], but you get the idea.)

3 Likes

well. not only that makes for a wrong indentation.

There is various different patterns causing messed up indentation in studio right now