Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
Roald87 opened this issue Jun 1, 2021 · 0 comments
Open

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

Roald87 opened this issue Jun 1, 2021 · 0 comments
Labels
bug Something isn't working core Issues related to TcBlackCore good first issue Good for newcomers

Comments

@Roald87
Copy link
Owner

Roald87 commented Jun 1, 2021

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.

@Roald87 Roald87 added bug Something isn't working good first issue Good for newcomers core Issues related to TcBlackCore labels Jun 1, 2021
@Roald87 Roald87 added this to the TcBlackCore v0.2.1 milestone Jun 1, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working core Issues related to TcBlackCore good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant