diff options
author | Aleksey Kladov <[email protected]> | 2017-12-31 08:15:27 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2017-12-31 08:15:27 +0000 |
commit | 0b49db623f74c698a92ee8c686709c5abb9fcfbd (patch) | |
tree | 06de5e953a2c008753304e19057e76d71c1eba4a /src | |
parent | d6a922459ed3ebc77ba5d79cd65144078f43e321 (diff) |
Lexer: literal suffixes
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) { |