mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 20:22:30 +01:00
Cg Disasm: Fix instruction highlighting patter
Highlighted wrongly the "Loading..." because L is an uppercase letter.
This commit is contained in:
parent
cd98e84ca5
commit
f1d9e89418
@ -67,7 +67,7 @@ LogHighlighter::LogHighlighter(QTextDocument* parent) : Highlighter(parent)
|
|||||||
|
|
||||||
AsmHighlighter::AsmHighlighter(QTextDocument *parent) : Highlighter(parent)
|
AsmHighlighter::AsmHighlighter(QTextDocument *parent) : Highlighter(parent)
|
||||||
{
|
{
|
||||||
addRule("^[A-Z0-9]+", Qt::darkBlue); // Instructions
|
addRule("^\b[A-Z0-9]+\b", Qt::darkBlue); // Instructions
|
||||||
addRule("-?R\\d[^,;\\s]*", Qt::darkRed); // -R0.*
|
addRule("-?R\\d[^,;\\s]*", Qt::darkRed); // -R0.*
|
||||||
addRule("-?H\\d[^,;\\s]*", Qt::red); // -H1.*
|
addRule("-?H\\d[^,;\\s]*", Qt::red); // -H1.*
|
||||||
addRule("-?v\\[\\d\\]*[^,;\\s]*", Qt::darkCyan); // -v[xyz].*
|
addRule("-?v\\[\\d\\]*[^,;\\s]*", Qt::darkCyan); // -v[xyz].*
|
||||||
|
Loading…
Reference in New Issue
Block a user