core: lexer: avoid special case handling

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>