aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h
index 700d25f..56e58c4 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -300,6 +300,16 @@ private:
State *custom(gchar chr);
void end_of_macro(void);
+
+ /*
+ * The state should behave like StateStart
+ * when it comes to function key macro masking.
+ */
+ fnmacroMask
+ get_fnmacro_mask(void) const
+ {
+ return FNMACRO_MASK_START;
+ }
};
class StateFCommand : public State {
@@ -405,6 +415,15 @@ namespace States {
extern StateInsertIndent insert_indent;
extern State *current;
+
+ static inline bool
+ is_start(void)
+ {
+ /*
+ * StateEscape should behave very much like StateStart.
+ */
+ return current == &start || current == &escape;
+ }
}
extern enum Mode {