Page 1 of 1

Preprocessor parameter table parsing

Posted: Sun May 18, 2025 11:40 pm
by lazi
Not really a bug, but a differency of table handling between the preprocessor parameters and other tables.
If the last table item is followed by a comma that is not allowed in the preprocessor lines.

This has an error "Tag expected!"

Code: Select all

@DISPLAY   {
	width=160,
	height=100,
}                 
But inside the script, such a definition has no problem:

Code: Select all

mydisplay=   {
	width=160,
	height=100,
}                 
It suggests that not the same code parses the preprocessor commands and the rest of the script.

Re: Preprocessor parameter table parsing

Posted: Sun May 25, 2025 7:19 pm
by airsoftsoftwair
lazi wrote: Sun May 18, 2025 11:40 pm It suggests that not the same code parses the preprocessor commands and the rest of the script.
That is true. I'll see if I can change this to be consistent.

Re: Preprocessor parameter table parsing

Posted: Sun Jun 22, 2025 5:29 pm
by airsoftsoftwair
Sorry, not going to fix this because I don't like the aesthetics of a comma before the closing brace ;)