aboutsummaryrefslogtreecommitdiffhomepage
path: root/tokenizer.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-12-10 16:23:08 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-12-10 16:23:08 -0800
commiteec6db0a2312e923f74402bb2e714f4bb331d9bd (patch)
tree13567712e06226b0935d86d3c059280f370d68e1 /tokenizer.h
parent983bc5ceccdea58e1bb358f978a36cddc43d73b6 (diff)
forward-word should accept a word of an autosuggestion
Diffstat (limited to 'tokenizer.h')
-rw-r--r--tokenizer.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/tokenizer.h b/tokenizer.h
index 23a4361f..44438bb3 100644
--- a/tokenizer.h
+++ b/tokenizer.h
@@ -184,4 +184,22 @@ const wchar_t *tok_get_desc(int type);
int tok_get_error(tokenizer_t *tok);
+/* Our state machine that implements "one word" movement or erasure. */
+class move_word_state_machine_t
+{
+ enum
+ {
+ s_whitespace,
+ s_separator,
+ s_slash,
+ s_nonseparators_except_slash,
+ s_end
+ } state;
+
+public:
+ move_word_state_machine_t();
+ bool consume_char(wchar_t c);
+};
+
+
#endif