I broke multi-line strings. A quote cannot be part of an
unknown mark, but it can be part of '"""' or "'''".
Signed-off-by: NeilBrown <neil@brown.name>
prev = ch;
save_unget_state(state);
ch = get_char(state);
- if (!(ignored && (1<<TK_string)) && is_quote(ch))
+ if (!(ignored && (1<<TK_string)) && n < 0 &&is_quote(ch) && !is_quote(prev))
+ /* If strings are allowed, a quote (Which isn't a known mark)
+ * mustn't be treated as part of an unknown mark. It can be
+ * part of a multi-line srtings though.
+ */
break;
if (prev == '#' && n < 0)
/* '#' is not a known mark, so assume it is a comment */