summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorTristano Ajmone <tajmone@libero.it>2019-06-05 16:20:13 +0200
committerMiran <narimiran@disroot.org>2019-06-05 16:20:13 +0200
commit6ebbff0a111b284625dced137973a660087befb1 (patch)
treecb2e9013e989739d54e6818e4328d9f1c8b33b8b /lib
parentc16a75382208ebfa03ee847c81efa15b18fa0ca4 (diff)
downloadNim-6ebbff0a111b284625dced137973a660087befb1.tar.gz
Fix strscans Docs (#11408) [ci skip]
Amend two typos in the documentation of strscans library:

- `a ^* b` instead of `a ^+ b`.
- Remove hyphen from `$w` ASCII identifier `[A-Z-a-z_][A-Za-z_0-9]*`
  (matching `IdentStartChars` definition in parseutils).
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/strscans.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/strscans.nim b/lib/pure/strscans.nim
index c1c535e55..fd6f3a87d 100644
--- a/lib/pure/strscans.nim
+++ b/lib/pure/strscans.nim
@@ -36,7 +36,7 @@ substrings starting with ``$``. These constructions are available:
 ``$i``              Matches a decimal integer. This uses ``parseutils.parseInt``.
 ``$h``              Matches a hex integer. This uses ``parseutils.parseHex``.
 ``$f``              Matches a floating pointer number. Uses ``parseFloat``.
-``$w``              Matches an ASCII identifier: ``[A-Z-a-z_][A-Za-z_0-9]*``.
+``$w``              Matches an ASCII identifier: ``[A-Za-z_][A-Za-z_0-9]*``.
 ``$s``              Skips optional whitespace.
 ``$$``              Matches a single dollar sign.
 ``$.``              Matches if the end of the input string has been reached.
@@ -131,7 +131,7 @@ to use prefix instead of postfix operators.
 ``E{n,m}``       From ``n`` up to ``m`` times ``E``
 ``~E``           Not predicate
 ``a ^* b``       Shortcut for ``?(a *(b a))``. Usually used for separators.
-``a ^* b``       Shortcut for ``?(a +(b a))``. Usually used for separators.
+``a ^+ b``       Shortcut for ``?(a +(b a))``. Usually used for separators.
 ``'a'``          Matches a single character
 ``{'a'..'b'}``   Matches a character set
 ``"s"``          Matches a string
vision' href='/akspecs/aerc/blame/models/models.go?h=0.6.0&id=88c379dcbaaf9fd549cd271817e79fe634b1dd84'>^
63391b7 ^
cce7cb4 ^
















c610c3c ^











19dfc49 ^
































c610c3c ^











































bf28e23 ^


d238272 ^



bf28e23 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177