diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-30 12:14:24 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-30 12:14:24 -0400 |
| commit | 838c9963fc2216e827ceed80fc352d1d16ea30f9 (patch) | |
| tree | 82eed3eb921ae36ba745122ed6b182d8b92ec329 /parse.c | |
| parent | 04d9adc8138566eec5d6bf7b233a6c617306bcce (diff) | |
Adding a REPL
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1899,7 +1899,7 @@ ast_t *parse_file(file_t *file, jmp_buf *on_err) { ast_t *ast = parse_namespace(&ctx, pos); pos = ast->end; whitespace(&pos); - if (pos < file->text + file->len) { + if (pos < file->text + file->len && *pos != '\0') { parser_err(&ctx, pos, pos + strlen(pos), "I couldn't parse this part of the file"); } return ast; |
