From 8365690860fe3e2e204028bb35f109bc6d0b74d9 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Fri, 19 Nov 2021 01:08:07 -0800 Subject: [PATCH] Fixes --- schala-lang/src/parsing/combinator.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/schala-lang/src/parsing/combinator.rs b/schala-lang/src/parsing/combinator.rs index 4f76873..157278d 100644 --- a/schala-lang/src/parsing/combinator.rs +++ b/schala-lang/src/parsing/combinator.rs @@ -689,19 +689,11 @@ fn string_literal(input: Span) -> ParseResult { } fn bare_string_literal(input: Span) -> ParseResult { - println!("BARE STRING: {}", input.fragment()); let string_escape_transforms = alt((value("\\", tag("\\")), value("\"", tag("\"")), value("\n", tag("n")), value("\t", tag("t")))); alt(( map(tag(r#""""#), |_| String::new()), - map( - tuple(( - char('"'), - escaped_transform(none_of(r#""\"#), '\\', string_escape_transforms), - char('"'), - )), - |(_, s, _)| s, - ), + delimited(char('"'), escaped_transform(none_of(r#""\"#), '\\', string_escape_transforms), char('"')) ))(input) }