Browse Source

Allow `+` in import paths

gingerBill 4 years ago
parent
commit
9ab94650c8
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/parser.cpp

+ 1 - 2
src/parser.cpp

@@ -5018,10 +5018,9 @@ AstPackage *try_add_import_path(Parser *p, String const &path, String const &rel
 
 
 gb_global Rune illegal_import_runes[] = {
 gb_global Rune illegal_import_runes[] = {
 	'"', '\'', '`',
 	'"', '\'', '`',
-	// ' ',
 	'\t', '\r', '\n', '\v', '\f',
 	'\t', '\r', '\n', '\v', '\f',
 	'\\', // NOTE(bill): Disallow windows style filepaths
 	'\\', // NOTE(bill): Disallow windows style filepaths
-	'!', '$', '%', '^', '&', '*', '(', ')', '=', '+',
+	'!', '$', '%', '^', '&', '*', '(', ')', '=',
 	'[', ']', '{', '}',
 	'[', ']', '{', '}',
 	';',
 	';',
 	':', // NOTE(bill): Disallow windows style absolute filepaths
 	':', // NOTE(bill): Disallow windows style absolute filepaths