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

Function PiuCodeParserBegin

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

Source from the content-addressed store, hash-verified

53}
54
55void PiuCodeParserBegin(PiuCode* self, PiuCodeParser parser)
56{
57 parser->the = (*self)->the;
58 parser->slot = (*self)->string;
59 parser->runs = (*self)->runs;
60 parser->columnCount = 0;
61 parser->columnIndex = -1;
62 parser->lineCount = 1;
63 parser->input = 0;
64 parser->output = 0;
65 parser->size = 0;
66 parser->string = fxToString(parser->the, parser->slot);
67 parser->tab = 4;
68 parser->color = 0;
69 parser->offset = 0;
70 PiuTextBufferClear(parser->the, parser->runs);
71 PiuCodeParserAdvance(parser);
72}
73
74void PiuCodeParserColorAt(PiuCodeParser parser, int32_t color, int32_t offset)
75{

Callers

nothing calls this directly

Calls 3

fxToStringFunction · 0.85
PiuTextBufferClearFunction · 0.85
PiuCodeParserAdvanceFunction · 0.85

Tested by

no test coverage detected