mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
96a2c155e9
commit
a5cd87de72
@ -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…
x
Reference in New Issue
Block a user