diff options
| author | Hayden Gray <hgray@northwindstech.com> | 2025-06-05 11:24:50 -0400 |
|---|---|---|
| committer | Hayden Gray <hgray@northwindstech.com> | 2025-06-05 11:24:50 -0400 |
| commit | ccdd14394efb4d5e8341491528f5fc141a6d9e14 (patch) | |
| tree | a72b1a82232a9ef912a63d1b0286a734ff7f79b7 /src | |
| parent | a1759aa2fafcb000359436d967d58a67a9b1a782 (diff) | |
[parser.cpp] - packages with `.odin` in the name no longer attempt
to parse as odin files
Diffstat (limited to 'src')
| -rw-r--r-- | src/parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 0057ab611..942e83f29 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -5794,7 +5794,7 @@ gb_internal AstPackage *try_add_import_path(Parser *p, String path, String const for (FileInfo fi : list) { String name = fi.name; String ext = path_extension(name); - if (ext == FILE_EXT) { + if (ext == FILE_EXT && !path_is_directory(name)) { files_with_ext += 1; } if (ext == FILE_EXT && !is_excluded_target_filename(name)) { @@ -5819,7 +5819,7 @@ gb_internal AstPackage *try_add_import_path(Parser *p, String path, String const for (FileInfo fi : list) { String name = fi.name; String ext = path_extension(name); - if (ext == FILE_EXT) { + if (ext == FILE_EXT && !path_is_directory(name)) { if (is_excluded_target_filename(name)) { continue; } |