aboutsummaryrefslogtreecommitdiff
path: root/src/lexer
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2017-12-31 08:32:49 +0000
committerAleksey Kladov <[email protected]>2017-12-31 08:32:49 +0000
commit9d5138bf11eb0c979c49f904010d2d3690bdf74c (patch)
tree0da765e0005c601e12f8228fe4da2a3d84a4d4ca /src/lexer
parent0b49db623f74c698a92ee8c686709c5abb9fcfbd (diff)
Lexer: simplistic char & lifetime tests
Diffstat (limited to 'src/lexer')
-rw-r--r--src/lexer/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lexer/mod.rs b/src/lexer/mod.rs
index 918683556..320d59de5 100644
--- a/src/lexer/mod.rs
+++ b/src/lexer/mod.rs
@@ -101,7 +101,7 @@ fn next_token_inner(c: char, ptr: &mut Ptr) -> SyntaxKind {
101 _ => NOT, 101 _ => NOT,
102 }, 102 },
103 103
104 // '\'' => scan_char_or_lifetime(ptr), 104 '\'' => return scan_char_or_lifetime(ptr),
105 _ => (), 105 _ => (),
106 } 106 }
107 ERROR 107 ERROR
@@ -159,6 +159,7 @@ fn scan_literal_suffix(ptr: &mut Ptr) {
159} 159}
160 160
161fn scan_char_or_byte(ptr: &mut Ptr) { 161fn scan_char_or_byte(ptr: &mut Ptr) {
162 //FIXME: deal with escape sequencies
162 ptr.bump(); 163 ptr.bump();
163} 164}
164 165