mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-27 13:03:17 +02:00
...
This commit is contained in:
parent
96a2c155e9
commit
a5cd87de72
1 changed files with 1 additions and 0 deletions
|
|
@ -205,6 +205,7 @@ def in_string(state, text, i, formats):
|
|||
pos = text.find(q, i)
|
||||
if pos == -1:
|
||||
if text[-1] == '\\':
|
||||
# Multi-line string
|
||||
return [(len(text) - i, formats['string'])]
|
||||
state.parse = (State.NORMAL if state.blocks < 1 else State.IN_CONTENT)
|
||||
return [(len(text) - i, formats['unterminated-string'])]
|
||||
|
|
|
|||
Loading…
Reference in a new issue