Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#211 Parsing colors doesn't know when to stop

open
nobody
None
5
2011-06-01
2011-06-01
LesK
No

Both SET RESERVED and SET COLOR don't stop parsing when the
color setting is complete. For example:

SET COLOR FILEAREA BLINK RED ON BLACK UNDER BRIGHT

is accepted, perhaps with weird results.

This means, for instance, that the first string of a reserved line can't be one of the modifiers, since parsing eats it... at least for about the first 8 words.

It's obvious that the first words of a reserved line can't look like the *completion* of a color specification, but if the specification IS complete, then everything following should be 'line data'.

Discussion