But there is intervening text, the middle one you just decided was text and not a styling directive. Are you suggesting it doesn't count as text, and doesn't count as a closing directive? If so, what is it?
Seems like I definitely need to clarify the rules a bit either way. —Sam On Fri, Nov 6, 2020, at 12:49, Tedd Sterr wrote: > Input = *** > > Current = * (index 0) Lookahead = * (index 1) > > Is current a styling directive? No, because lookahead indicates no > intervening text. > > Current = * (index 1) Lookahead = * (index 2) > > Is current a styling directive? No, because lookahead indicates no > intervening text. > > Current = * (index 2) Lookahead = EOS > > Is current a styling directive? No, because lookahead indicates end > of string. > > > > So my reasoning here is that if you lazily match to the middle > asterisk in "***" and call it a styling directive, there won't be any > text between them so it's not a styling directive. Then you'd move on > to the next asterisk and the one you just ruled out as a styling > directive is between them (so that one is text and the second asterisk > is a styling directive). > > Does that actually make sense? > > _______________________________________________ > Standards mailing list Info: > https://mail.jabber.org/mailman/listinfo/standards Unsubscribe: Standards- > [email protected] > _______________________________________________ > -- Sam Whited _______________________________________________ Standards mailing list Info: https://mail.jabber.org/mailman/listinfo/standards Unsubscribe: [email protected] _______________________________________________
