MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuCodeParserFill

Function PiuCodeParserFill

modules/piu/PC/Code/piuCodeColor.c:141–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void PiuCodeParserFill(PiuCodeParser parser)
142{
143 PiuCodeRunRecord runRecord;
144 if (parser->input > parser->output) {
145 runRecord.kind = piuCodeColorKind;
146 runRecord.color = parser->color;
147 runRecord.count = parser->input - parser->output;
148 PiuTextBufferAppend(parser->the, parser->runs, &runRecord, sizeof(PiuCodeRunRecord));
149 parser->string = fxToString(parser->the, parser->slot);
150 parser->output = parser->input;
151 }
152}
153
154void PiuCodeParserReturn(PiuCodeParser parser)
155{

Callers 3

PiuCodeParserEndFunction · 0.85
PiuCodeParserReturnFunction · 0.85
PiuCodeParserTabFunction · 0.85

Calls 2

PiuTextBufferAppendFunction · 0.85
fxToStringFunction · 0.85

Tested by

no test coverage detected