Fix missing formatting around attribute values in the comments editor HTML syntax highlighter

This commit is contained in:
Kovid Goyal
2020-07-31 22:48:28 +05:30
parent a19f61bc5f
commit 379e5137e8
+3
View File
@@ -922,6 +922,7 @@ class Highlighter(QSyntaxHighlighter):
if ch == '>':
state = State_Text
self.setFormat(pos-1, 1, self.colors['tag'])
break
if not ch.isspace():
@@ -959,11 +960,13 @@ class Highlighter(QSyntaxHighlighter):
# 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():