| 139 | } |
| 140 | |
| 141 | void 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 | |
| 154 | void PiuCodeParserReturn(PiuCodeParser parser) |
| 155 | { |
no test coverage detected