@@ -34,12 +34,10 @@ must be doubled to escape it:
34
34
35
35
' A single quote '' inside a single-quoted string'
36
36
37
- Strings containing any of the following characters must be quoted. Although you
38
- can use double quotes, for these characters it is more convenient to use single
39
- quotes, which avoids having to escape any backslash ``\ ``:
40
-
41
- * ``: ``, ``{ ``, ``} ``, ``[ ``, ``] ``, ``, ``, ``& ``, ``* ``, ``# ``, ``? ``, ``| ``,
42
- ``- ``, ``< ``, ``> ``, ``= ``, ``! ``, ``% ``, ``@ ``, ``` ``
37
+ Strings containing any of the following characters must be quoted:
38
+ ``: { } [ ] , & * # ? | - < > = ! % @ `` Although you can use double quotes, for
39
+ these characters it is more convenient to use single quotes, which avoids having
40
+ to escape any backslash ``\ ``.
43
41
44
42
The double-quoted style provides a way to express arbitrary strings, by
45
43
using ``\ `` to escape characters and sequences. For instance, it is very useful
@@ -52,11 +50,11 @@ when you need to embed a ``\n`` or a Unicode character in a string.
52
50
If the string contains any of the following control characters, it must be
53
51
escaped with double quotes:
54
52
55
- * ``\0 ``, ``\x01 ``, ``\x02 ``, ``\x03 ``, ``\x04 ``, ``\x05 ``, ``\x06 ``, ``\a ``,
56
- ``\b ``, ``\t ``, ``\n ``, ``\v ``, ``\f ``, ``\r ``, ``\x0e ``, ``\x0f ``, ``\x10 ``,
57
- ``\x11 ``, ``\x12 ``, ``\x13 ``, ``\x14 ``, ``\x15 ``, ``\x16 ``, ``\x17 ``, ``\x18 ``,
58
- ``\x19 ``, ``\x1a ``, ``\e ``, ``\x1c ``, ``\x1d ``, ``\x1e ``, ``\x1f ``, ``\N ``,
59
- ``\_ ``, ``\L ``, ``\P ``
53
+ ``\0 ``, ``\x01 ``, ``\x02 ``, ``\x03 ``, ``\x04 ``, ``\x05 ``, ``\x06 ``, ``\a ``,
54
+ ``\b ``, ``\t ``, ``\n ``, ``\v ``, ``\f ``, ``\r ``, ``\x0e ``, ``\x0f ``, ``\x10 ``,
55
+ ``\x11 ``, ``\x12 ``, ``\x13 ``, ``\x14 ``, ``\x15 ``, ``\x16 ``, ``\x17 ``, ``\x18 ``,
56
+ ``\x19 ``, ``\x1a ``, ``\e ``, ``\x1c ``, ``\x1d ``, ``\x1e ``, ``\x1f ``, ``\N ``,
57
+ ``\_ ``, ``\L ``, ``\P ``
60
58
61
59
Finally, there are other cases when the strings must be quoted, no matter if
62
60
you're using single or double quotes:
0 commit comments