[dokuwiki] Re: Greedy brackets for footnote syntax

  • From: Mykola Ostrovskyy <spambox03@xxxxxxx>
  • To: Dmitry Katsubo <dokuwiki@xxxxxxxxxxxxx>
  • Date: Thu, 8 Oct 2009 21:48:56 +0200

Hi,

DK> 1. ((Some footnote text (also [[see here]]))).
DK> 2. (I am sure bug was found before((Have a look at [[this bug]]))).
DK> 3. (((possibly true) This is obvious!)).
DK> 4. (((TODO: contact him)) the author is wrong).

DK> I wonder, if there any universal solution?

If you are asking about clairvoyant parser, I guess, with some extensive 
analysis of surrounding
syntax it's possible to fix these four cases. But then you can come up with 
additional scenarios
where that hypothetical parser will break as well.

If this is a practical question, RefNotes plugin mixes brackets and parentheses 
(i.e. [(text)]),
which have somewhat lower rate of collisions with common punctuation. Your four 
cases are covered.


Mykola

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: