diff options
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h index 976b215..81099b9 100644 --- a/src/parser.h +++ b/src/parser.h @@ -243,6 +243,11 @@ protected: State *done(const gchar *str); }; +class StateInsertIndent : public StateInsert { +protected: + void initial(void); +}; + namespace States { extern StateStart start; extern StateControl control; @@ -254,6 +259,7 @@ namespace States { extern StateScintilla_lParam scintilla_lparam; extern StateInsert insert_building; extern StateInsert insert_nobuilding; + extern StateInsertIndent insert_indent; extern State *current; @@ -264,6 +270,12 @@ namespace States { } static inline bool + is_insertion() + { + return dynamic_cast<StateInsert *>(current); + } + + static inline bool is_file() { return dynamic_cast<StateExpectFile *>(current); |