diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-04-11 21:08:01 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-04-11 21:08:01 +0200 |
| commit | 789daf0a87994f9b131308c52cea70df21de4d61 (patch) | |
| tree | 5284ad84917faaa11409d4ba462af359145fc651 /src/server/documents.odin | |
| parent | 144d2b3e36d3dca77b8531dc0136ba084b530d54 (diff) | |
Fix windows issue with package lower and uppercase
Diffstat (limited to 'src/server/documents.odin')
| -rw-r--r-- | src/server/documents.odin | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/server/documents.odin b/src/server/documents.odin index 0c18249..dfcf9fd 100644 --- a/src/server/documents.odin +++ b/src/server/documents.odin @@ -342,6 +342,12 @@ parse_document :: proc(document: ^common.Document, config: ^common.Config) -> ([ parser.parse_file(&p, &document.ast) + parse_imports(document, config) + + return current_errors[:], true +} + +parse_imports :: proc(document: ^common.Document, config: ^common.Config) { imports := make([dynamic]common.Package) when ODIN_OS == .Windows { @@ -407,6 +413,4 @@ parse_document :: proc(document: ^common.Document, config: ^common.Config) -> ([ } document.imports = imports[:] - - return current_errors[:], true -} +}
\ No newline at end of file |