]> git.wincent.com - wikitext.git/commit
Don't drop unexpected token on the floor after failed external link
authorWincent Colaiuta <win@wincent.com>
Fri, 5 Nov 2010 23:51:12 +0000 (00:51 +0100)
committerWincent Colaiuta <win@wincent.com>
Fri, 5 Nov 2010 23:51:12 +0000 (00:51 +0100)
commit4c93572da5c4f5e7db2f5189b2ea671f0edd708b
treef3a786ce9b0a581b627db3fc1eb399b740815c46
parente78cc3cc0ec74591f4a4f61de7c3e4da91792d4b
Don't drop unexpected token on the floor after failed external link

This specifically arises after an EXT_LINK_START + PATH sequence. At
this point we expect a SPACE token, but if we don't get it, we were just
dropping it on the floor, which is bad.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/parser.c
spec/regressions_spec.rb