Skip to content

[Haxe4] Auto-indent wrong after final keyword #2775

Open
@gene-pavlovsky

Description

@gene-pavlovsky

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions