Say you’re currently at 1 tab of indentation in a Lua file. Type do<return>end
. After the , the next line is still at 1 indent instead of indenting to 2. Furthermore, after typing “end”, the line dedents to 0 tabs.
This is in contrast with for i=1,2 do<return>end
which works properly.
(do-end blocks are used in Lua to create a local scope, similarly to plain { } blocks in C-like languages.)