diff options
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index c2c781392..d39267869 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -4679,7 +4679,7 @@ Array<AstNode *> parse_stmt_list(AstFile *f) { ParseFileError init_ast_file(AstFile *f, String fullpath, TokenPos *err_pos) { f->fullpath = string_trim_whitespace(fullpath); // Just in case - if (!string_has_extension(f->fullpath, str_lit("odin"))) { + if (!string_ends_with(f->fullpath, str_lit(".odin"))) { return ParseFile_WrongExtension; } TokenizerInitError err = init_tokenizer(&f->tokenizer, f->fullpath); |