Skip to content

Commit 67b8e59

Browse files
committed
Reserve all other special characters so invalid Windows paths are easier to catch
1 parent 00f11b0 commit 67b8e59

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ Here is the list of special characters.
9999
\\ - backslash (0x5c)
100100
```
101101

102+
Other special characters are reserved and, if used, TOML should produce an
103+
error. This means paths on Windows will always have to use double backslashes.
104+
105+
```toml
106+
wrong = "C:\Users\nodejs\templates" # note: doesn't produce a valid path
107+
right = "C:\\Users\\nodejs\\templates"
108+
```
109+
102110
Integers are bare numbers, all alone. Feeling negative? Do what's natural.
103111
64-bit minimum size expected.
104112

0 commit comments

Comments
 (0)