mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-02 07:55:04 +01:00
Fix missing formatting around attribute values in the comments editor HTML syntax highlighter
This commit is contained in:
parent
a19f61bc5f
commit
379e5137e8
1 changed files with 3 additions and 0 deletions
|
|
@ -922,6 +922,7 @@ def highlightBlock(self, text):
|
|||
|
||||
if ch == '>':
|
||||
state = State_Text
|
||||
self.setFormat(pos-1, 1, self.colors['tag'])
|
||||
break
|
||||
|
||||
if not ch.isspace():
|
||||
|
|
@ -959,11 +960,13 @@ def highlightBlock(self, text):
|
|||
# handle opening single quote
|
||||
if ch == "'":
|
||||
state = State_SingleQuote
|
||||
self.setFormat(pos - 1, 1, self.colors['attrval'])
|
||||
break
|
||||
|
||||
# handle opening double quote
|
||||
if ch == '"':
|
||||
state = State_DoubleQuote
|
||||
self.setFormat(pos - 1, 1, self.colors['attrval'])
|
||||
break
|
||||
|
||||
if not ch.isspace():
|
||||
|
|
|
|||
Loading…
Reference in a new issue