@@ -281,7 +281,7 @@ extension Source {
281
281
let kind : Located < Quant . Kind > = recordLoc { src in
282
282
if src. tryEat ( " ? " ) { return . reluctant }
283
283
if src. tryEat ( " + " ) { return . possessive }
284
- return . greedy
284
+ return . eager
285
285
}
286
286
287
287
return ( amt, kind)
@@ -290,8 +290,8 @@ extension Source {
290
290
/// Consume a range
291
291
///
292
292
/// Range -> ',' <Int> | <Int> ',' <Int>? | <Int>
293
- /// | ModernRange
294
- /// ModernRange -> '..<' <Int> | '...' <Int>
293
+ /// | ExpRange
294
+ /// ExpRange -> '..<' <Int> | '...' <Int>
295
295
/// | <Int> '..<' <Int> | <Int> '...' <Int>?
296
296
mutating func expectRange( ) throws -> Located < Quant . Amount > {
297
297
try recordLoc { src in
@@ -303,7 +303,7 @@ extension Source {
303
303
let closedRange : Bool ?
304
304
if src. tryEat ( " , " ) {
305
305
closedRange = true
306
- } else if src. modernRanges && src. tryEat ( " . " ) {
306
+ } else if src. experimentalRanges && src. tryEat ( " . " ) {
307
307
try src. expect ( " . " )
308
308
if src. tryEat ( " . " ) {
309
309
closedRange = true
@@ -374,11 +374,11 @@ extension Source {
374
374
///
375
375
/// Quote -> '\Q' (!'\E' .)* '\E'
376
376
///
377
- /// With `SyntaxOptions.modernQuotes `, also accepts
377
+ /// With `SyntaxOptions.experimentalQuotes `, also accepts
378
378
///
379
- /// ModernQuote -> '"' [^"]* '"'
379
+ /// ExpQuote -> '"' [^"]* '"'
380
380
///
381
- /// Future: Modern quotes are full fledged Swift string literals
381
+ /// Future: Experimental quotes are full fledged Swift string literals
382
382
///
383
383
/// TODO: Need to support some escapes
384
384
///
@@ -387,7 +387,7 @@ extension Source {
387
387
if src. tryEat ( sequence: #"\Q"# ) {
388
388
return try src. expectQuoted ( endingWith: #"\E"# ) . value
389
389
}
390
- if src. modernQuotes , src. tryEat ( " \" " ) {
390
+ if src. experimentalQuotes , src. tryEat ( " \" " ) {
391
391
// TODO: escaped `"`, etc...
392
392
return try src. expectQuoted ( endingWith: " \" " ) . value
393
393
}
@@ -399,9 +399,9 @@ extension Source {
399
399
///
400
400
/// Comment -> '(?#' [^')']* ')'
401
401
///
402
- /// With `SyntaxOptions.modernComments `
402
+ /// With `SyntaxOptions.experimentalComments `
403
403
///
404
- /// ModernComment -> '/*' (!'*/' .)* '*/'
404
+ /// ExpComment -> '/*' (!'*/' .)* '*/'
405
405
///
406
406
/// TODO: Swift-style nested comments, line-ending comments, etc
407
407
///
@@ -410,7 +410,7 @@ extension Source {
410
410
if src. tryEat ( sequence: " (?# " ) {
411
411
return try src. expectQuoted ( endingWith: " ) " ) . value
412
412
}
413
- if src. modernComments , src. tryEat ( sequence: " /*") {
413
+ if src. experimentalComments , src. tryEat ( sequence: " /*") {
414
414
return try src.expectQuoted(endingWith: "*/" ) . value
415
415
}
416
416
return nil
@@ -439,9 +439,9 @@ extension Source {
439
439
/// Named -> '<' [^'>']+ '>' | 'P<' [^'>']+ '>'
440
440
/// | '\'' [^'\'']+ '\''
441
441
///
442
- /// If `SyntaxOptions.modernGroups ` is enabled, also accepts:
442
+ /// If `SyntaxOptions.experimentalGroups ` is enabled, also accepts:
443
443
///
444
- /// ModernGroupStart -> '(_:'
444
+ /// ExpGroupStart -> '(_:'
445
445
///
446
446
/// Future: Named groups of the form `(name: ...)`
447
447
///
@@ -519,7 +519,7 @@ extension Source {
519
519
}
520
520
521
521
// (_:)
522
- if src. modernCaptures && src. tryEat ( sequence: " _: " ) {
522
+ if src. experimentalCaptures && src. tryEat ( sequence: " _: " ) {
523
523
return . nonCapture
524
524
}
525
525
// TODO: (name:)
@@ -699,9 +699,9 @@ extension Source {
699
699
/// SpecialCharacter -> '.' | '^' | '$'
700
700
/// POSIXSet -> '[:' name ':]'
701
701
///
702
- /// If `SyntaxOptions.nonSemanticWhitespace ` is enabled, also accepts:
702
+ /// If `SyntaxOptions.experimentalGroups ` is enabled, also accepts:
703
703
///
704
- /// ModernGroupStart -> '(_:'
704
+ /// ExpGroupStart -> '(_:'
705
705
///
706
706
mutating func lexAtom(
707
707
isInCustomCharacterClass customCC: Bool
0 commit comments