From ba3f2a6a0cdea0aad2668823235ead4e193d91f6 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 3 Jun 2021 10:28:45 +0100 Subject: [PATCH] All spaces in `import`-like paths --- src/parser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/parser.cpp b/src/parser.cpp index 88f8ebb99..2e8f8ff60 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -4851,7 +4851,9 @@ AstPackage *try_add_import_path(Parser *p, String const &path, String const &rel } gb_global Rune illegal_import_runes[] = { - '"', '\'', '`', ' ', '\t', '\r', '\n', '\v', '\f', + '"', '\'', '`', + // ' ', + '\t', '\r', '\n', '\v', '\f', '\\', // NOTE(bill): Disallow windows style filepaths '!', '$', '%', '^', '&', '*', '(', ')', '=', '+', '[', ']', '{', '}',