aboutsummaryrefslogtreecommitdiff
path: root/src/server/documents.odin
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-04-28 00:04:10 +0200
committerDaniel Gavin <danielgavin5@hotmail.com>2022-04-28 00:04:10 +0200
commit485285ee58c3c3ef3bd09a1d8cd4232d2dfa1917 (patch)
treee7ff6cccf501a1f7098af6a4ce6e18d2d3681ee9 /src/server/documents.odin
parent02d0c0bec7a51dfa2dbdb87c9f34b8216ba83676 (diff)
remove the lower case for windows.
Diffstat (limited to 'src/server/documents.odin')
-rw-r--r--src/server/documents.odin13
1 files changed, 2 insertions, 11 deletions
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