summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-09-29 16:27:21 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-09-29 18:08:52 +0200
commitc1dcaa3ccbb263f021157f2aebd185c6388c28a1 (patch)
treed7427aa83999dbcbbc21e9d305defda4295fba32 /tests
parent3673ffb8fbd283948821601a0d9b6ec724984474 (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')
-rw-r--r--tests/Klocation2
1 files changed, 2 insertions, 0 deletions
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