GekkoSyntaxHighlight: Collapse cases for builtin color formats

Same behavior, but without as much duplication.
This commit is contained in:
Lioncash 2024-01-23 18:39:57 -05:00
parent e4fa5614d1
commit 100242a380

View File

@ -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;