lexer: Implement custom lexing of backslash escape sequences.