diff options
author | koekeishiya <aasvi93@hotmail.com> | 2018-01-07 17:51:01 +0100 |
---|---|---|
committer | koekeishiya <aasvi93@hotmail.com> | 2018-01-07 17:51:01 +0100 |
commit | 7281155a2ba83f128bcf57ab1a8e8218ba596b14 (patch) | |
tree | 0cf5b2053eec9eb0e6040239845b9d2ade269553 /src/parse.c | |
parent | c0528515368a54b839ccb34e1cdcc03e122a5184 (diff) | |
download | skhd-7281155a2ba83f128bcf57ab1a8e8218ba596b14.tar.gz skhd-7281155a2ba83f128bcf57ab1a8e8218ba596b14.zip |
#15 minor
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/parse.c b/src/parse.c index c17ebf1..3e60dd1 100644 --- a/src/parse.c +++ b/src/parse.c @@ -179,9 +179,7 @@ parse_mode(struct parser *parser, struct hotkey *hotkey) if (!mode && token_equals(identifier, "default")) { mode = find_or_init_default_mode(parser); - } - - if (!mode) { + } else if (!mode) { parser_report_error(parser, Error_Undeclared_Ident, "undeclared identifier"); return; } @@ -194,7 +192,6 @@ parse_mode(struct parser *parser, struct hotkey *hotkey) parse_mode(parser, hotkey); } else { parser_report_error(parser, Error_Unexpected_Token, "expected identifier"); - return; } } } |