Lexer: byte strings sufixes

This commit is contained in:
Aleksey Kladov
2017-12-31 14:10:18 +03:00
parent 2f24fb4f2c
commit b704eb708f
3 changed files with 14 additions and 2 deletions
+5 -1
View File
@@ -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