diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-19 21:43:39 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-20 06:07:33 +0100 |
commit | b804417f36ef398f1223e439fd5ac9f2ade046eb (patch) | |
tree | 5d19cde8c5f6bfe7c3e839661b90ee1f4f0bbca4 /parser.h | |
parent | 3db5b1a40bf6b503b26827355f40033b1047a123 (diff) | |
download | sciteco-b804417f36ef398f1223e439fd5ac9f2ade046eb.tar.gz |
support special "{" alternate escape character: is only terminated by a matching *balanced* "}"
this eases writing nested macros
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |