From b804417f36ef398f1223e439fd5ac9f2ade046eb Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 19 Nov 2012 21:43:39 +0100 Subject: support special "{" alternate escape character: is only terminated by a matching *balanced* "}" this eases writing nested macros --- parser.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'parser.h') diff --git a/parser.h b/parser.h index ba3a632..a704c83 100644 --- a/parser.h +++ b/parser.h @@ -110,11 +110,13 @@ class StateExpectString : public State { mode(MODE_NORMAL), toctl(false) {} } machine; + gint nesting; + bool string_building; public: StateExpectString(bool _building = true) - : State(), string_building(_building) {} + : State(), nesting(1), string_building(_building) {} private: gchar *machine_input(gchar key) throw (Error); -- cgit v1.2.3