Fixed lexer minor bugs

Signed-off-by: Grégory PLANCHAT <g.planchat@gmail.com>