Fossil SCM

Correct display of character sequence examples to work around lack of multi-level bulleted lists

andygoth 2017-04-20 18:26 glob-docs
Commit 2df14399e6b13bb4bd196a2171fda1af9b6586ca747fd3190cc34f78b5e577b3
1 file changed +21 -13
+21 -13
--- www/globs.md
+++ www/globs.md
@@ -67,36 +67,44 @@
6767
`[^`. At any other place, `]` ends the list.
6868
6969
* Include `^` in a list by placing anywhere except first after the
7070
`[`.
7171
72
- * Some examples of character lists:
73
- `[a-d]` Matches any one of `a`, `b`, `c`, or `d` but not `ä`;
74
- `[^a-d]` Matches exactly one character other than `a`, `b`, `c`,
75
- or `d`;
76
- `[0-9a-fA-F]` Matches exactly one hexadecimal digit;
77
- `[a-]` Matches either `a` or `-`;
78
- `[][]` Matches either `]` or `[`;
79
- `[^]]` Matches exactly one character other than `]`;
80
- `[]^]` Matches either `]` or `^`; and
81
- `[^-]` Matches exactly one character other than `-`.
82
-
83
- Beware that ranges in lists may include more than you expect:
72
+ * Beware that ranges in lists may include more than you expect:
8473
`[A-z]` Matches `A` and `Z`, but also matches `a` and some less
8574
obvious characters such as `[`, `\`, and `]` with code point
8675
values between `Z` and `a`.
8776
88
- Beware that a range must be specified from low value to high
77
+ * Beware that a range must be specified from low value to high
8978
value: `[z-a]` does not match any character at all, preventing the
9079
entire glob from matching.
9180
9281
* Note that unlike typical Unix shell globs, wildcards (`*`, `?`,
9382
and character lists) are allowed to match `/` directory
9483
separators as well as the initial `.` in the name of a hidden
9584
file or directory.
9685
9786
87
+Some examples of character lists:
88
+
89
+ * `[a-d]` Matches any one of `a`, `b`, `c`, or `d` but not `ä`;
90
+
91
+ * `[^a-d]` Matches exactly one character other than `a`, `b`, `c`,
92
+ or `d`;
93
+
94
+ * `[0-9a-fA-F]` Matches exactly one hexadecimal digit;
95
+
96
+ * `[a-]` Matches either `a` or `-`;
97
+
98
+ * `[][]` Matches either `]` or `[`;
99
+
100
+ * `[^]]` Matches exactly one character other than `]`;
101
+
102
+ * `[]^]` Matches either `]` or `^`; and
103
+
104
+ * `[^-]` Matches exactly one character other than `-`.
105
+
98106
White space means the ASCII characters TAB, LF, VT, FF, CR, and SPACE.
99107
Note that this does not include any of the many additional spacing
100108
characters available in Unicode, and specifically does not include
101109
U+00A0 NO-BREAK SPACE.
102110
103111
--- www/globs.md
+++ www/globs.md
@@ -67,36 +67,44 @@
67 `[^`. At any other place, `]` ends the list.
68
69 * Include `^` in a list by placing anywhere except first after the
70 `[`.
71
72 * Some examples of character lists:
73 `[a-d]` Matches any one of `a`, `b`, `c`, or `d` but not `ä`;
74 `[^a-d]` Matches exactly one character other than `a`, `b`, `c`,
75 or `d`;
76 `[0-9a-fA-F]` Matches exactly one hexadecimal digit;
77 `[a-]` Matches either `a` or `-`;
78 `[][]` Matches either `]` or `[`;
79 `[^]]` Matches exactly one character other than `]`;
80 `[]^]` Matches either `]` or `^`; and
81 `[^-]` Matches exactly one character other than `-`.
82
83 Beware that ranges in lists may include more than you expect:
84 `[A-z]` Matches `A` and `Z`, but also matches `a` and some less
85 obvious characters such as `[`, `\`, and `]` with code point
86 values between `Z` and `a`.
87
88 Beware that a range must be specified from low value to high
89 value: `[z-a]` does not match any character at all, preventing the
90 entire glob from matching.
91
92 * Note that unlike typical Unix shell globs, wildcards (`*`, `?`,
93 and character lists) are allowed to match `/` directory
94 separators as well as the initial `.` in the name of a hidden
95 file or directory.
96
97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98 White space means the ASCII characters TAB, LF, VT, FF, CR, and SPACE.
99 Note that this does not include any of the many additional spacing
100 characters available in Unicode, and specifically does not include
101 U+00A0 NO-BREAK SPACE.
102
103
--- www/globs.md
+++ www/globs.md
@@ -67,36 +67,44 @@
67 `[^`. At any other place, `]` ends the list.
68
69 * Include `^` in a list by placing anywhere except first after the
70 `[`.
71
72 * Beware that ranges in lists may include more than you expect:
 
 
 
 
 
 
 
 
 
 
 
73 `[A-z]` Matches `A` and `Z`, but also matches `a` and some less
74 obvious characters such as `[`, `\`, and `]` with code point
75 values between `Z` and `a`.
76
77 * Beware that a range must be specified from low value to high
78 value: `[z-a]` does not match any character at all, preventing the
79 entire glob from matching.
80
81 * Note that unlike typical Unix shell globs, wildcards (`*`, `?`,
82 and character lists) are allowed to match `/` directory
83 separators as well as the initial `.` in the name of a hidden
84 file or directory.
85
86
87 Some examples of character lists:
88
89 * `[a-d]` Matches any one of `a`, `b`, `c`, or `d` but not `ä`;
90
91 * `[^a-d]` Matches exactly one character other than `a`, `b`, `c`,
92 or `d`;
93
94 * `[0-9a-fA-F]` Matches exactly one hexadecimal digit;
95
96 * `[a-]` Matches either `a` or `-`;
97
98 * `[][]` Matches either `]` or `[`;
99
100 * `[^]]` Matches exactly one character other than `]`;
101
102 * `[]^]` Matches either `]` or `^`; and
103
104 * `[^-]` Matches exactly one character other than `-`.
105
106 White space means the ASCII characters TAB, LF, VT, FF, CR, and SPACE.
107 Note that this does not include any of the many additional spacing
108 characters available in Unicode, and specifically does not include
109 U+00A0 NO-BREAK SPACE.
110
111

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button