From 485285ee58c3c3ef3bd09a1d8cd4232d2dfa1917 Mon Sep 17 00:00:00 2001 From: Daniel Gavin Date: Thu, 28 Apr 2022 00:04:10 +0200 Subject: remove the lower case for windows. --- src/server/documents.odin | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/server/documents.odin') diff --git a/src/server/documents.odin b/src/server/documents.odin index c177217..a360bd3 100644 --- a/src/server/documents.odin +++ b/src/server/documents.odin @@ -350,11 +350,7 @@ parse_document :: proc(document: ^common.Document, config: ^common.Config) -> ([ parse_imports :: proc(document: ^common.Document, config: ^common.Config) { imports := make([dynamic]common.Package) - when ODIN_OS == .Windows { - document.package_name = strings.to_lower(path.dir(document.uri.path, context.temp_allocator)) - } else { - document.package_name = path.dir(document.uri.path) - } + document.package_name = path.dir(document.uri.path) for imp, index in document.ast.imports { if i := strings.index(imp.fullpath, "\""); i == -1 { @@ -378,12 +374,7 @@ parse_imports :: proc(document: ^common.Document, config: ^common.Config) { } import_: common.Package - - when ODIN_OS == .Windows { - import_.name = strings.clone(path.join(elems = {strings.to_lower(dir, context.temp_allocator), p}, allocator = context.temp_allocator)) - } else { - import_.name = strings.clone(path.join(elems = {dir, p}, allocator = context.temp_allocator)) - } + import_.name = strings.clone(path.join(elems = {dir, p}, allocator = context.temp_allocator)) if imp.name.text != "" { import_.base = imp.name.text -- cgit v1.2.3