From be79585f0e81b27ce3dc6b94f1f502ff86dcef68 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 12 Apr 2015 17:34:09 +0200 Subject: Pass "isImplicit" flag to Handler::fieldStart --- src/core/parser/stack/DocumentHandler.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (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 3ef5f08..d047666 100644 --- a/src/core/parser/stack/DocumentHandler.hpp +++ b/src/core/parser/stack/DocumentHandler.hpp @@ -112,7 +112,12 @@ private: /** * If set to true, this handler represents an explicit field. */ - bool isExplicitField; + bool isExplicitField : 1; + + /** + * Set to true if the handler currently is in an implicit field. + */ + bool inImplicitDefaultField : 1; /** * Registers all user defined tokens in the parser. @@ -225,7 +230,7 @@ public: EndTokenResult endToken(Handle node, size_t maxStackDepth) override; void end() override; bool data() override; - bool fieldStart(bool &isDefault, size_t fieldIdx) override; + bool fieldStart(bool &isDefault, bool isImplicit, size_t fieldIdx) override; void fieldEnd() override; /** -- cgit v1.2.3