summaryrefslogtreecommitdiff
path: root/src/core/parser/stack/DocumentHandler.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-04-12 17:38:36 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:24:15 +0200
commit2416462060ef54cb737688f648d150313b82e5f4 (patch)
tree3de90284b12531c98ac1b5058d8d788348a3b9f3 /src/core/parser/stack/DocumentHandler.hpp
parent8bfc7878a725d8f1c2754893bc8b660ff78f89bf (diff)
Pass "greedy" flag to Handler::startToken
Diffstat (limited to 'src/core/parser/stack/DocumentHandler.hpp')
-rw-r--r--src/core/parser/stack/DocumentHandler.hpp8
1 files changed, 7 insertions, 1 deletions
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
@@ -115,6 +115,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.
*/
bool inImplicitDefaultField : 1;
@@ -226,7 +232,7 @@ public:
bool startCommand(Variant::mapType &args) override;
bool startAnnotation(Variant::mapType &args) override;
- bool startToken(Handle<Node> node) override;
+ bool startToken(Handle<Node> node, bool greedy) override;
EndTokenResult endToken(Handle<Node> node, size_t maxStackDepth) override;
void end() override;
bool data() override;