aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parser.c b/src/parser.c
index 4da693b..01b252c 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -49,8 +49,9 @@ tree_t* parser_parse_chunk(parser_t* parser) {
break;
}
default: {
- fputs("smthn smthn \"invalid syntax,\" idk.", stderr);
- exit(1);
+ log_dbg("Skiping non-keyword token");
+ lexer_next(parser->lexer);
+ break;
}
}
}