Posted 19 years ago
by tobias weltner
If you add text at the very end of an document (so there is no text and no cr to the right of the entered text), the lookahead expression is ignored.
So if I define a token with a lookahead expression and then enter the token at the end of the document, it gets falsely identified, then after adding a space or else, it gets correctly identified.
This leads to funny color effects that are confusing to the end user.
I wished lookahead would always fail if there was no lookahead text to evaluate. Currently, it seems to be just the opposite.
So if I define a token with a lookahead expression and then enter the token at the end of the document, it gets falsely identified, then after adding a space or else, it gets correctly identified.
This leads to funny color effects that are confusing to the end user.
I wished lookahead would always fail if there was no lookahead text to evaluate. Currently, it seems to be just the opposite.