diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-09-29 16:27:21 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-09-29 18:08:52 +0200 |
| commit | c1dcaa3ccbb263f021157f2aebd185c6388c28a1 (patch) | |
| tree | d7427aa83999dbcbbc21e9d305defda4295fba32 /tests/Khelp | |
| parent | 3673ffb8fbd283948821601a0d9b6ec724984474 (diff) | |
Refactor parsing to get rid of _saved_line
Handle the line-after-help-text case specially, which allows _has_tokens
(renamed to _reuse_tokens) to be used as the unget mechanism for help
texts as well, leaving _saved_line unused. Move the _reuse_tokens check
into _next_line().
This makes _parse_block() as straightforward as _parse_properties(), and
simplifies _parse_properties() a tiny bit too by getting rid of the
'_tokens_i = -1' assignment.
Diffstat (limited to 'tests/Khelp')
0 files changed, 0 insertions, 0 deletions
