aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2017-12-31 08:15:27 +0000
committerAleksey Kladov <[email protected]>2017-12-31 08:15:27 +0000
commit0b49db623f74c698a92ee8c686709c5abb9fcfbd (patch)
tree06de5e953a2c008753304e19057e76d71c1eba4a /src
parentd6a922459ed3ebc77ba5d79cd65144078f43e321 (diff)
Lexer: literal suffixes
Diffstat (limited to 'src')
-rw-r--r--src/lexer/mod.rs5
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
154fn scan_literal_suffix(ptr: &mut Ptr) { 154fn 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
158fn scan_char_or_byte(ptr: &mut Ptr) { 161fn scan_char_or_byte(ptr: &mut Ptr) {