diff options
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parse.c b/src/parse.c index d219d8c..7bde2dc 100644 --- a/src/parse.c +++ b/src/parse.c @@ -30,6 +30,7 @@ find_or_init_default_mode(struct parser *parser) (table_hash_func) hash_hotkey, (table_compare_func) same_hotkey); + default_mode->capture = false; default_mode->command = NULL; table_add(parser->mode_map, default_mode->name, default_mode); @@ -286,6 +287,12 @@ parse_mode_decl(struct parser *parser) (table_hash_func) hash_hotkey, (table_compare_func) same_hotkey); + if (parser_match(parser, Token_Capture)) { + mode->capture = true; + } else { + mode->capture = false; + } + if (parser_match(parser, Token_Command)) { mode->command = copy_string_count(parser->previous_token.text, parser->previous_token.length); } else { |