mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 17:26:55 +08:00
Fix string parsing
This commit is contained in:
parent
b104b26f11
commit
bff30278e1
@ -889,11 +889,13 @@ namespace chaiscript
|
||||
if (!Eol_()) {
|
||||
if (prev_char == '$' && *m_position == '{') {
|
||||
++in_interpolation;
|
||||
} else if (*m_position == '"') {
|
||||
} else if (prev_char != '\\' && *m_position == '"') {
|
||||
in_quote = !in_quote;
|
||||
} else if (*m_position == '}' && !in_quote) {
|
||||
--in_interpolation;
|
||||
} else if (prev_char == '\\') {
|
||||
}
|
||||
|
||||
if (prev_char == '\\') {
|
||||
prev_char = 0;
|
||||
} else {
|
||||
prev_char = *m_position;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user