aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h
index e810fa4..13b99d4 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -242,6 +242,12 @@ namespace States {
extern StateInsert insert;
extern State *current;
+
+ static inline bool
+ is_string()
+ {
+ return dynamic_cast<StateExpectString *>(current);
+ }
}
extern enum Mode {