aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2026-01-24 14:15:03 +0100
committerGitHub <noreply@github.com>2026-01-24 14:15:03 +0100
commit756c17ef7848bd6ffb6289361213178cc7d7e47b (patch)
tree2659eaaf726e451fd638c1264baf56d9326cb717 /src/parser.cpp
parent8ffc98b4bf791e25e9281ddfe32a1308b5ccbed3 (diff)
parent1c529d8cb217cc97138934f393b5670e16fd1843 (diff)
Merge pull request #6167 from Kelimion/fix-6165
Fix #6165
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 277a405b7..fe864a6bc 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -6023,6 +6023,12 @@ gb_internal bool determine_path_from_string(BlockingMutex *file_mutex, Ast *node
has_windows_drive = true;
}
}
+
+ for (isize i = 0; i < original_string.len; i++) {
+ if (original_string.text[i] == '\\') {
+ original_string.text[i] = '/';
+ }
+ }
}
#endif