mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Fix missing formatting around attribute values in the comments editor HTML syntax highlighter
This commit is contained in:
parent
a19f61bc5f
commit
379e5137e8
@ -922,6 +922,7 @@ class Highlighter(QSyntaxHighlighter):
|
|||||||
|
|
||||||
if ch == '>':
|
if ch == '>':
|
||||||
state = State_Text
|
state = State_Text
|
||||||
|
self.setFormat(pos-1, 1, self.colors['tag'])
|
||||||
break
|
break
|
||||||
|
|
||||||
if not ch.isspace():
|
if not ch.isspace():
|
||||||
@ -959,11 +960,13 @@ class Highlighter(QSyntaxHighlighter):
|
|||||||
# handle opening single quote
|
# handle opening single quote
|
||||||
if ch == "'":
|
if ch == "'":
|
||||||
state = State_SingleQuote
|
state = State_SingleQuote
|
||||||
|
self.setFormat(pos - 1, 1, self.colors['attrval'])
|
||||||
break
|
break
|
||||||
|
|
||||||
# handle opening double quote
|
# handle opening double quote
|
||||||
if ch == '"':
|
if ch == '"':
|
||||||
state = State_DoubleQuote
|
state = State_DoubleQuote
|
||||||
|
self.setFormat(pos - 1, 1, self.colors['attrval'])
|
||||||
break
|
break
|
||||||
|
|
||||||
if not ch.isspace():
|
if not ch.isspace():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user