Skip to content

VAR CONSTANT, VAR PERSISTENT and VAR RETAIN not recognized #80

Description

@Roald87

The following code is formatted as follows

// in
FUNCTION_BLOCK POU
VAR PERSISTENT
	var1 : INT;
END_VAR
VAR CONSTANT
	number : INT := 5;
END_VAR
VAR RETAIN
	y : REAL;
END_VAR

// out
FUNCTION_BLOCK POU
VAR PERSISTENT
var1 : INT;
END_VAR
VAR CONSTANT
number : INT := 5;
END_VAR
VAR RETAIN
y : REAL;
END_VAR

It should not remove the indentation. Probably caused by the space which seperates RETAIN, PERSISTENT and CONSTANT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcoreIssues related to TcBlackCoregood first issueGood for newcomers

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions