MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / applyBaseAddressColoring

Method applyBaseAddressColoring

src/editor.cpp:804–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804void RcxEditor::applyBaseAddressColoring(const QVector<LineMeta>& meta) {
805 if (meta.isEmpty() || meta[0].lineKind != LineKind::CommandRow) return;
806
807 clearIndicatorLine(IND_BASE_ADDR, 0);
808 // Override lexer's green number coloring on the address with default text color
809 QString t = getLineText(m_sci, 0);
810 ColumnSpan addr = commandRowAddrSpan(t);
811 if (addr.valid)
812 fillIndicatorCols(IND_BASE_ADDR, 0, addr.start, addr.end);
813}
814
815void RcxEditor::applyCommandRowPills() {
816 if (m_meta.isEmpty() || m_meta[0].lineKind != LineKind::CommandRow) return;

Callers

nothing calls this directly

Calls 2

getLineTextFunction · 0.85
commandRowAddrSpanFunction · 0.85

Tested by

no test coverage detected