From 9d5138bf11eb0c979c49f904010d2d3690bdf74c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 31 Dec 2017 11:32:49 +0300 Subject: Lexer: simplistic char & lifetime tests --- src/lexer/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lexer') 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 { _ => NOT, }, - // '\'' => scan_char_or_lifetime(ptr), + '\'' => return scan_char_or_lifetime(ptr), _ => (), } ERROR @@ -159,6 +159,7 @@ fn scan_literal_suffix(ptr: &mut Ptr) { } fn scan_char_or_byte(ptr: &mut Ptr) { + //FIXME: deal with escape sequencies ptr.bump(); } -- cgit v1.2.3