Clarification for error on #directive with comma

Propose new features and changes
safetycar
Posts: 435
Joined: 12 Aug 2017, 04:27

Clarification for error on #directive with comma

Post by safetycar » 03 Aug 2021, 01:17

I've noticed that in v2 directives still have a sort of v1 style. (I don't know the reason why they haven't been converted to function style, but I guess there is one.)

Getting into the issue, I found an error because of using a comma after the directive name.
This was allowed in v1 but not in v2. (Although the docs for v1 doesn't seem to use it, it always looked more consistent with the rest of the syntax, so I tended to use it and never had a problem.)
So my suggestion, if possible, would be to make if this message a bit more clear:
Error at line 1.

Line Text: #Warn, All, Off
Error: This line does not contain a recognized action.

The program will exit.

Return to “Wish List”