diff options
| author | gingerBill <bill@gingerbill.org> | 2017-11-19 15:06:56 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-11-19 15:06:56 +0000 |
| commit | cec9f7abfe55a70fc7e56960eda1870aee596cbb (patch) | |
| tree | c29bf4b61514704af30a36d09967f8c0e57a04a4 /src/parser.cpp | |
| parent | 284a9cd4c3f22be3b66b0a45406a0ea10fe508bf (diff) | |
Add `-debug` command (still in development)
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); |