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

Function PiuCodeParserTab

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

Source from the content-addressed store, hash-verified

172}
173
174void PiuCodeParserTab(PiuCodeParser parser)
175{
176 PiuCodeRunRecord runRecord;
177 PiuCodeParserFill(parser);
178 PiuCodeParserAdvance(parser);
179 int32_t columnIndex = parser->columnIndex - 1;
180 parser->columnIndex = columnIndex + parser->tab;
181 parser->columnIndex -= parser->columnIndex % parser->tab;
182 runRecord.kind = piuCodeTabKind;
183 runRecord.color = parser->columnIndex - columnIndex;
184 runRecord.count = 1;
185 PiuTextBufferAppend(parser->the, parser->runs, &runRecord, sizeof(PiuCodeRunRecord));
186 parser->string = fxToString(parser->the, parser->slot);
187 parser->output = parser->input;
188}

Callers 5

fxParseJSCodeFunction · 0.85
fxParseJSStringFunction · 0.85
fxParseJSONTokenFunction · 0.85
PiuCodeParserEndFunction · 0.85
fxParseXMLSpaceFunction · 0.85

Calls 4

PiuCodeParserFillFunction · 0.85
PiuCodeParserAdvanceFunction · 0.85
PiuTextBufferAppendFunction · 0.85
fxToStringFunction · 0.85

Tested by

no test coverage detected