Feature #38
openHasty "Premature end of file"
0%
Description
I report this not so serious bug for documentation only (it could eventually puzzle some beginner). As trivial as it seems patching it probably involves tweaking the lexical analyser, quite not a really exciting thing to do.
If no newline (end of file just following the dot) then i get this error:
Updated by Alain Prouté over 18 years ago
- Status changed from New to Assigned
This is because the dot alone is not the same token as a dot followed by a space (or newline). This 'feature' has been added so as to allow the recognition of the end of a paragraph by PyramIDE (for syntactic coloring). But actually, I'm not sure it's still needed, because PyramIDE has a complete syntactic analyser.
This is also why in the dot notation 'a.f' 'f' must immediately follow the dot. The dot followed by a space is not an operator.
No definitive decision has been taken.