From 0b49db623f74c698a92ee8c686709c5abb9fcfbd Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 31 Dec 2017 11:15:27 +0300 Subject: Lexer: literal suffixes --- src/lexer/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lexer/mod.rs') diff --git a/src/lexer/mod.rs b/src/lexer/mod.rs index 3f277bd2b..918683556 100644 --- a/src/lexer/mod.rs +++ b/src/lexer/mod.rs @@ -152,7 +152,10 @@ fn scan_char_or_lifetime(ptr: &mut Ptr) -> SyntaxKind { } fn scan_literal_suffix(ptr: &mut Ptr) { - + if ptr.next_is_p(is_ident_start) { + ptr.bump(); + } + ptr.bump_while(is_ident_continue); } fn scan_char_or_byte(ptr: &mut Ptr) { -- cgit v1.2.3