Fix string parsing

This commit is contained in:
Jason Turner
2016-01-31 19:35:40 -07:00
parent b104b26f11
commit bff30278e1

View File

@@ -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;