From b704eb708f5fd6440abc02eb52dbbfbd9feedaa6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 31 Dec 2017 14:10:18 +0300 Subject: Lexer: byte strings sufixes --- src/lexer/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lexer/mod.rs b/src/lexer/mod.rs index ccc25b8c9..d81ea0339 100644 --- a/src/lexer/mod.rs +++ b/src/lexer/mod.rs @@ -123,7 +123,11 @@ fn next_token_inner(c: char, ptr: &mut Ptr) -> SyntaxKind { scan_literal_suffix(ptr); CHAR }, - 'b' => return scan_byte_char_or_string(ptr), + 'b' => { + let kind = scan_byte_char_or_string(ptr); + scan_literal_suffix(ptr); + return kind + }, _ => (), } ERROR -- cgit v1.2.3