Have you also noticed the evil trim() in doTableStuff() ?
Right before it starts to parse the line. Means have to lookahead if a line
starts with whitespace or NUL. 


Jared
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Steve Bennett
> Sent: 04 February 2008 12:11
> To: Wikitext-l
> Subject: [Wikitext-l] So, the hardest wikitext construct to parse?
> 
> Table rows:
> 
> {|
> |-
> |You parse and parse and parse and read and read and you have no idea
> whether this is a table cell or a style property for the 
> cell, until you hit either a | or a ||. Oops, it was just a 
> style property, better go back and parse it again.
> |}
> 
> That's kind of evil. For big table rows, that could get very 
> expensive to parse.
> 
> Steve
> 
> _______________________________________________
> Wikitext-l mailing list
> [email protected]
> http://lists.wikimedia.org/mailman/listinfo/wikitext-l


_______________________________________________
Wikitext-l mailing list
[email protected]
http://lists.wikimedia.org/mailman/listinfo/wikitext-l

Reply via email to