aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parse.c b/src/parse.c
index bac0215..559d23d 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -196,6 +196,9 @@ parse_config(struct parser *parser)
(parser_check(parser, Token_Key))) {
current_hotkey->next = parse_hotkey(parser);
current_hotkey = current_hotkey->next;
+ if(parser->error) {
+ return NULL;
+ }
} else {
fprintf(stderr, "(#%d:%d) expected token 'Token_Modifier', 'Token_Key_Hex' or 'Token_Key', but got '%.*s'\n",
parser->current_token.line, parser->current_token.cursor,