]> git.wincent.com - wikitext.git/commit
Add LEFT_CURLY and RIGHT_CURLY symbols
authorWincent Colaiuta <win@wincent.com>
Tue, 19 Feb 2008 08:52:18 +0000 (09:52 +0100)
committerWincent Colaiuta <win@wincent.com>
Tue, 19 Feb 2008 08:52:18 +0000 (09:52 +0100)
commitdd43eff64edff71fe258ef0a69791e577c2ad06b
tree70890913c780cd60a5c44e19fab5435852916b54
parent3ff145f57b61b6a3de79ce97422229ef2e25013c
Add LEFT_CURLY and RIGHT_CURLY symbols

In order to avoid ambiguity we have to separately tokenize single curly
braces and exclude them from the standard PRINTABLE rule. Otherwise the
greedy matching behaviour would match a run like "foo{{bar}}baz" as a
single PRINTABLE token rather than a PRINTABLE, IMG_START, PRINTABLE,
IMG_END, PRINTABLE sequence.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/token.c
ext/token.h