mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 10:35:20 -04:00
...
This commit is contained in:
@@ -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'])]
|
||||
|
||||
Reference in New Issue
Block a user