lexan: gobble unexpected characters until something makes sense

Rather than just sending a single character when unexpected input is
encountered gobble characters until something makes sense then return
the gobbled characters as the matched text for the input error.  This
should make writing the parser rules that cope with unexpected input
easier to define.

Signed-off-by: Peter Williams <pwil3058@gmail.com>