fox32asm: Allow any character to be escaped in strings with '\'

This commit is contained in:
ry755 2022-02-22 13:31:51 -08:00 committed by Ry
parent 0ec2787e0b
commit 637e62ff38

View File

@ -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})
}