From c1dcaa3ccbb263f021157f2aebd185c6388c28a1 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 29 Sep 2018 16:27:21 +0200 Subject: 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. --- tests/Klocation | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/Klocation') diff --git a/tests/Klocation b/tests/Klocation index 2604f5b..f997055 100644 --- a/tests/Klocation +++ b/tests/Klocation @@ -33,6 +33,8 @@ config HELP_3 foo bar bool +config \ +MULTI_DEF config MULTI_DEF -- cgit v1.2.3