Haxe code sample
function foo()
if (true)
{
final i = 1;
|
}
Note: "|" is the caret position.
Start typing at the caret position, the code is auto-indented at the same level as function.
If final i is replaced with var i then indentation is correct. I guess it's related to the final keyword used in this context.