Merge pull request #12527 from lioncash/highlight

GekkoSyntaxHighlight: Fix FPR terminal highlighting being treated as GPRs
This commit is contained in:
JosJuice 2024-01-24 17:55:44 +01:00 committed by GitHub
commit dab03e4c08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,7 @@ public:
break; break;
case Terminal::FPR: case Terminal::FPR:
HighlightCurToken(HighlightFormat::GPR); HighlightCurToken(HighlightFormat::FPR);
break; break;
case Terminal::SPR: case Terminal::SPR:
@ -221,17 +221,9 @@ void GekkoSyntaxHighlight::HighlightSubstr(int start, int len, HighlightFormat f
hl_format.setForeground(IMM_COLOR[m_theme_idx]); hl_format.setForeground(IMM_COLOR[m_theme_idx]);
break; break;
case HighlightFormat::GPR: case HighlightFormat::GPR:
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
break;
case HighlightFormat::FPR: case HighlightFormat::FPR:
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
break;
case HighlightFormat::SPR: case HighlightFormat::SPR:
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
break;
case HighlightFormat::CRField: case HighlightFormat::CRField:
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
break;
case HighlightFormat::CRFlag: case HighlightFormat::CRFlag:
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]); hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
break; break;