From cec9f7abfe55a70fc7e56960eda1870aee596cbb Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 19 Nov 2017 15:06:56 +0000 Subject: Add `-debug` command (still in development) --- src/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.cpp') 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 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); -- cgit v1.2.3