| 341 | } |
| 342 | |
| 343 | void Scanner::PopAllIndents() { |
| 344 | // are we in flow? |
| 345 | if (InFlowContext()) { |
| 346 | return; |
| 347 | } |
| 348 | |
| 349 | // now pop away |
| 350 | while (!m_indents.empty()) { |
| 351 | const IndentMarker& indent = *m_indents.top(); |
| 352 | if (indent.type == IndentMarker::NONE) { |
| 353 | break; |
| 354 | } |
| 355 | |
| 356 | PopIndent(); |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | void Scanner::PopIndent() { |
| 361 | const IndentMarker& indent = *m_indents.top(); |