From 637e62ff38c65813785cc72ac930cbed001a213c Mon Sep 17 00:00:00 2001 From: ry755 Date: Tue, 22 Feb 2022 13:31:51 -0800 Subject: [PATCH] fox32asm: Allow any character to be escaped in strings with '\' --- src/fox32.pest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fox32.pest b/src/fox32.pest index 5d2ae0a..bb4fcaa 100644 --- a/src/fox32.pest +++ b/src/fox32.pest @@ -137,7 +137,7 @@ immediate_str = ${ "\"" ~ body_str ~ "\"" } body_str = @{ body_str_chars* } body_str_chars = { !("\"" | "\\") ~ ANY - | "\\" ~ ("\"" | "\\" | "/" | "b" | "f" | "n" | "r" | "t") + | "\\" ~ body_str_chars | "\\" ~ ("u" ~ ASCII_HEX_DIGIT{4}) }