diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lexer/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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 { | |||
152 | } | 152 | } |
153 | 153 | ||
154 | fn scan_literal_suffix(ptr: &mut Ptr) { | 154 | fn scan_literal_suffix(ptr: &mut Ptr) { |
155 | 155 | if ptr.next_is_p(is_ident_start) { | |
156 | ptr.bump(); | ||
157 | } | ||
158 | ptr.bump_while(is_ident_continue); | ||
156 | } | 159 | } |
157 | 160 | ||
158 | fn scan_char_or_byte(ptr: &mut Ptr) { | 161 | fn scan_char_or_byte(ptr: &mut Ptr) { |