diff options
author | Aleksey Kladov <[email protected]> | 2017-12-31 11:10:18 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2017-12-31 11:10:18 +0000 |
commit | b704eb708f5fd6440abc02eb52dbbfbd9feedaa6 (patch) | |
tree | ec4ca5e41c7f1e09e998a1f402967721264f08c9 /src | |
parent | 2f24fb4f2c5d8708533a1b0155e1e884bd4b2ba2 (diff) |
Lexer: byte strings sufixes
Diffstat (limited to 'src')
-rw-r--r-- | src/lexer/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lexer/mod.rs b/src/lexer/mod.rs index ccc25b8c9..d81ea0339 100644 --- a/src/lexer/mod.rs +++ b/src/lexer/mod.rs | |||
@@ -123,7 +123,11 @@ fn next_token_inner(c: char, ptr: &mut Ptr) -> SyntaxKind { | |||
123 | scan_literal_suffix(ptr); | 123 | scan_literal_suffix(ptr); |
124 | CHAR | 124 | CHAR |
125 | }, | 125 | }, |
126 | 'b' => return scan_byte_char_or_string(ptr), | 126 | 'b' => { |
127 | let kind = scan_byte_char_or_string(ptr); | ||
128 | scan_literal_suffix(ptr); | ||
129 | return kind | ||
130 | }, | ||
127 | _ => (), | 131 | _ => (), |
128 | } | 132 | } |
129 | ERROR | 133 | ERROR |