From a5eeef0eeed092cb663afc3b0cda2c0df0c7e793 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 18 Aug 2018 12:13:34 +0300 Subject: better char lexing --- crates/libsyntax2/src/lexer/strings.rs | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'crates/libsyntax2/src/lexer/strings.rs') diff --git a/crates/libsyntax2/src/lexer/strings.rs b/crates/libsyntax2/src/lexer/strings.rs index fbae767e5..795ea97b7 100644 --- a/crates/libsyntax2/src/lexer/strings.rs +++ b/crates/libsyntax2/src/lexer/strings.rs @@ -15,14 +15,23 @@ pub(crate) fn is_string_literal_start(c: char, c1: Option, c2: Option SyntaxKind { @@ -111,8 +120,3 @@ fn scan_raw_byte_string(ptr: &mut Ptr) { } } } - -fn scan_char_or_byte(ptr: &mut Ptr) { - //FIXME: deal with escape sequencies - ptr.bump(); -} -- cgit v1.2.3