diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-02-11 06:01:25 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-02-11 06:01:25 +0100 |
commit | d24bc4a3670c253fad5bee380c35e8a45dd283a2 (patch) | |
tree | 03f8ca53f2adf741936c219e7af1539e62250738 /src/parser.h | |
parent | a2956aa85f1ba63dc45166d6418be8d50a298a10 (diff) | |
download | sciteco-d24bc4a3670c253fad5bee380c35e8a45dd283a2.tar.gz |
implemented support for different indention styles
* the ^I command was altered to insert indention characters
rather than plain tabs always.
* The <TAB> immediate editing command was added for all
insertion arguments (I, ^I but also FR and FS)
* documentation was extended for a discussion of indention
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); |