fox32asm: Allow any character to be escaped in strings with '\'
This commit is contained in:
parent
0ec2787e0b
commit
637e62ff38
|
@ -137,7 +137,7 @@ immediate_str = ${ "\"" ~ body_str ~ "\"" }
|
||||||
body_str = @{ body_str_chars* }
|
body_str = @{ body_str_chars* }
|
||||||
body_str_chars = {
|
body_str_chars = {
|
||||||
!("\"" | "\\") ~ ANY
|
!("\"" | "\\") ~ ANY
|
||||||
| "\\" ~ ("\"" | "\\" | "/" | "b" | "f" | "n" | "r" | "t")
|
| "\\" ~ body_str_chars
|
||||||
| "\\" ~ ("u" ~ ASCII_HEX_DIGIT{4})
|
| "\\" ~ ("u" ~ ASCII_HEX_DIGIT{4})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user