Updated lexer rules interface

Signed-off-by: Grégory PLANCHAT <g.planchat@gmail.com>
Updated lexer rules unit tests

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