@@ -163,7 +163,7 @@ func f() {
163163 let x = 1
164164
165165
166- // Regexes
166+ // Regexps
167167
168168 // Simple case.
169169 let x = /a/
@@ -176,18 +176,18 @@ func f() {
176176 let x = /[\/ + " ]/ + // "
177177 a ( )
178178
179- // Regexes can contain quotes.
179+ // Regexps can contain quotes.
180180 let x = /"/
181181 let x = /"""/
182182
183- // Regex with extended delimiters can contain slashes.
183+ // Regexp with extended delimiters can contain slashes.
184184 let x = #// /* /#
185185
186- // Backslashes are still special in regexes with extended delimiters.
186+ // Backslashes are still special in regexps with extended delimiters.
187187 let x = #/\/# /* /#
188188 a ( )
189189
190- // Multiline regex .
190+ // Multiline regexp .
191191 let x = #/
192192 let x = #/
193193 / #
@@ -204,47 +204,47 @@ func f() {
204204 let x = #/
205205 / ##
206206
207- // Comments are ignored in exended regexes .
207+ // Comments are ignored in exended regexps .
208208 let x = #/
209209 let x = " a " # / #
210210 / #
211211
212- // Multiline comment cannot contain regexes with */.
212+ // Multiline comment cannot contain regexps with */.
213213 /*
214- let regex = /[0-9]*/
214+ let regexp = /[0-9]*/
215215 let x = " */ // "
216216
217217
218- // Regexes without extended delimiters cannot be preceded by infix
218+ // Regexps without extended delimiters cannot be preceded by infix
219219 // operators without whitespaces.
220220 // `a`, infix operator `+/`, `b`, and infix operator `%/`
221221 let x = a+/ b %/
222222 c ( )
223223
224- // Regexes without extended delimiters can be preceded by infix operators
224+ // Regexps without extended delimiters can be preceded by infix operators
225225 // with whitespaces.
226- // `a`, infix operator `+`, and regex /b %/
226+ // `a`, infix operator `+`, and regexp /b %/
227227 let x = a + /b %/
228228 c ( )
229229
230230 // Comments are whitespaces.
231231 let x = a/**/+/**// b %/
232232 c ( )
233233
234- // Regexes with extended delimiters can be preceded by infix operators
234+ // Regexps with extended delimiters can be preceded by infix operators
235235 // without whitespaces.
236- // `a`, infix operator `+`, and regex #/b /#
236+ // `a`, infix operator `+`, and regexp #/b /#
237237 let x = a+ #/b /#
238238 c ( )
239239
240- // Regexes without extended delimiters cannot start with spaces.
240+ // Regexps without extended delimiters cannot start with spaces.
241241 let regex = Regex {
242242 digit
243243 // infix operator `/`, and `a` with postfix operator `/'
244244 / a/
245245 digit
246246 }
247- // Regexes without extended delimiters cannot end with spaces.
247+ // Regexps without extended delimiters cannot end with spaces.
248248 let regex = Regex {
249249 digit
250250 // prefix operator `/`, `a`, and infix operator `/'
@@ -253,7 +253,7 @@ func f() {
253253 }
254254 let regex = Regex {
255255 digit
256- // regex /a/
256+ // regexp /a/
257257 / a/
258258 digit
259259 }
@@ -272,7 +272,7 @@ func f() {
272272 digit
273273 }
274274
275- // Regexes with extended delimiters can start with spaces.
275+ // Regexps with extended delimiters can start with spaces.
276276 let regex = Regex {
277277 digit
278278 #/ a /#
@@ -286,18 +286,18 @@ func f() {
286286 }
287287
288288 foo {
289- // Regex /^/, infix operator /^/, and b().
289+ // Regexp /^/, infix operator /^/, and b().
290290 let a = /^/ /^/
291291 b ( ) // swift-mode:test:known-bug
292292 }
293293
294294 foo {
295- // Regex /^/, infix operator /^/, regex /^/, and b()
295+ // Regexp /^/, infix operator /^/, regexp /^/, and b()
296296 let a = /^/ /^/ /^/
297297 b ( )
298298 }
299299
300- // Regex without extended delimiters cannot be multiline.
300+ // Regexp without extended delimiters cannot be multiline.
301301 // Also, it cannot end with // or /*
302302 let a = / 0 + // /
303303 b( )
@@ -306,22 +306,22 @@ func f() {
306306 */
307307 c( )
308308
309- // Regexes can be preceded with prefix operators wihtout spaces.
310- // prefix operator `+` and regex /a %/.
309+ // Regexps can be preceded with prefix operators wihtout spaces.
310+ // prefix operator `+` and regexp /a %/.
311311 let x = +/ a %/
312312 b ( )
313313
314- // Regexes without extended delimiters cannot contain unmatching close
314+ // Regexps without extended delimiters cannot contain unmatching close
315315 // parentheses.
316316 array. reduce ( 1 , /) { otherArray.reduce(1,/ )
317317 array. reduce ( 1 , /) }; otherArray.reduce(1,/ )
318318
319- // Regexes without extended delimiters can contain matching close
319+ // Regexps without extended delimiters can contain matching close
320320 // parentheses.
321321 array. reduce ( 1 , /(a) { otherArray.reduce(1,/ )
322322 array. reduce ( 1 , /(a) }; otherArray.reduce(1,/ )
323323
324- // Regexes without extended delimiters can contain escaped close
324+ // Regexps without extended delimiters can contain escaped close
325325 // parentheses.
326326 array. reduce ( 1 , /\) { otherArray.reduce(1,/ )
327327 array. reduce ( 1 , /\) }; otherArray.reduce(1,/ )
@@ -330,13 +330,13 @@ func f() {
330330 array. reduce ( 1 , /[)] { otherArray.reduce(1,/ )
331331 array. reduce ( 1 , /[)] }; otherArray.reduce(1,/ )
332332
333- // Regexes with extended delimiters can contain unmatching close
333+ // Regexps with extended delimiters can contain unmatching close
334334 // parentheses.
335335 array. reduce ( 1 , #/) { otherArray.reduce(1,/# )
336336 array. reduce ( 1 , #/) }; otherArray.reduce(1,/# )
337337
338338
339- // Regexes can contain unmatching close square brackets.
339+ // Regexps can contain unmatching close square brackets.
340340 let d = a [ /] %/
341341 ]
342342 let d = a[ ( /)] %/
0 commit comments