From 2416462060ef54cb737688f648d150313b82e5f4 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 12 Apr 2015 17:38:36 +0200 Subject: Pass "greedy" flag to Handler::startToken --- src/core/parser/stack/DocumentHandler.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/core/parser/stack/DocumentHandler.hpp') diff --git a/src/core/parser/stack/DocumentHandler.hpp b/src/core/parser/stack/DocumentHandler.hpp index d047666..216b2fe 100644 --- a/src/core/parser/stack/DocumentHandler.hpp +++ b/src/core/parser/stack/DocumentHandler.hpp @@ -114,6 +114,12 @@ private: */ bool isExplicitField : 1; + /** + * Set to false, if this handler was started from a token and is not greedy. + * True otherwise. + */ + bool isGreedy : 1; + /** * Set to true if the handler currently is in an implicit field. */ @@ -226,7 +232,7 @@ public: bool startCommand(Variant::mapType &args) override; bool startAnnotation(Variant::mapType &args) override; - bool startToken(Handle node) override; + bool startToken(Handle node, bool greedy) override; EndTokenResult endToken(Handle node, size_t maxStackDepth) override; void end() override; bool data() override; -- cgit v1.2.3