mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
qt: fix asm instructions highlighting (#4745)
* qt: fix asm instructions highlighting
This commit is contained in:
parent
88b6d51643
commit
cc22d25490
1 changed files with 7 additions and 7 deletions
|
@ -55,12 +55,12 @@ void Highlighter::highlightBlock(const QString &text)
|
||||||
|
|
||||||
AsmHighlighter::AsmHighlighter(QTextDocument *parent) : Highlighter(parent)
|
AsmHighlighter::AsmHighlighter(QTextDocument *parent) : Highlighter(parent)
|
||||||
{
|
{
|
||||||
addRule("^([^\\s]+).*$", Qt::darkBlue); // Instructions
|
addRule("^[A-Z0-9]+", Qt::darkBlue); // Instructions
|
||||||
addRule(",?\\s(-?R\\d[^,;\\s]*)", Qt::darkRed); // -R0.*
|
addRule("-?R\\d[^,;\\s]*", Qt::darkRed); // -R0.*
|
||||||
addRule(",?\\s(-?H\\d[^,;\\s]*)", Qt::red); // -H1.*
|
addRule("-?H\\d[^,;\\s]*", Qt::red); // -H1.*
|
||||||
addRule(",?\\s(-?v\\[\\d\\]*[^,;\\s]*)", Qt::darkCyan); // -v[xyz].*
|
addRule("-?v\\[\\d\\]*[^,;\\s]*", Qt::darkCyan); // -v[xyz].*
|
||||||
addRule(",?\\s(-?o\\[\\d\\]*[^,;\\s]*)", Qt::darkMagenta); // -o[xyz].*
|
addRule("-?o\\[\\d\\]*[^,;\\s]*", Qt::darkMagenta); // -o[xyz].*
|
||||||
addRule(",?\\s(-?c\\[\\d\\]*[^,;\\s]*)", Qt::darkYellow); // -c[xyz].*
|
addRule("-?c\\[\\d\\]*[^,;\\s]*", Qt::darkYellow); // -c[xyz].*
|
||||||
addRule("#[^\\n]*", Qt::darkGreen); // Single line comment
|
addRule("#[^\\n]*", Qt::darkGreen); // Single line comment
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue