rbs 2.7.0.pre.1 → 2.7.0.pre.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aeae92c94238c9c1b417f2efd334c6af1435c94b6f43480f6979b413694936b4
4
- data.tar.gz: 8abf8d32d6ce0b2103696436698fe5687bef05a677da6f46a317f83adfe73380
3
+ metadata.gz: b91bbd4603e52c92dc62538f74269e0ddf36320c4dec076f6520380cd1767f44
4
+ data.tar.gz: 37a8c8422100d50a3a8988865eb03bbc22a766c825f921ad7339929d144f3be5
5
5
  SHA512:
6
- metadata.gz: 6bdb78cad95578cf94728625e0d20ca211a1ed8140a728f5f723b2331731733d73bc6d33e0ec4f914782ff1cde52d52079c5625afe008a297c1952b115870075
7
- data.tar.gz: 0c56b8f9ce630cc77ec080ca5ad172611005fb2cd6cfcc18ea239dc5a8490aa11f74a0f4bd9d3045a8e71f6920b41d203fb7d228207696ea92d0c74c9069b317
6
+ metadata.gz: c23b91313d76d0c438f3b6195358440950bc2b751d86d625fda06798a1a1e0c0b6ee668a9f663075df6be5cb15940e0ae6caee23d08dc7cef2a6f8041b9af03f
7
+ data.tar.gz: b4611bb0e44db2c9e9d1f0df978e3e8d8e543a13a8583c65528d7cf2a5a29f5abcf49c2c6c437c4e5c08ea72f83ef74b04bf4fd6ede913cf7840f0c3067e32f0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 2.7.0.pre.2 (2022-09-20)
6
+
7
+ ### Signature updates
8
+
9
+ * `Set` ([#1110](https://github.com/ruby/rbs/pull/1110))
10
+ * `RDoc::Markup` ([#1109](https://github.com/ruby/rbs/pull/1109))
11
+
12
+ ### Library changes
13
+
14
+ * Always skip CR explicitly ([#1112](https://github.com/ruby/rbs/pull/1112))
15
+
16
+ ### Miscellaneous
17
+
18
+ * Use `append_cflags` for other than GCC ([#1106](https://github.com/ruby/rbs/pull/1106))
19
+
5
20
  ## 2.7.0.pre.1 (2022-09-02)
6
21
 
7
22
  See [Release Note 2.7](https://github.com/ruby/rbs/wiki/Release-Note-2.7) for the highlights of this release.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rbs (2.7.0.pre.1)
4
+ rbs (2.7.0.pre.2)
5
5
 
6
6
  PATH
7
7
  remote: test/assets/test-gem
@@ -62,7 +62,7 @@ GEM
62
62
  diff-lcs (>= 1.2.0, < 2.0)
63
63
  rspec-support (~> 3.11.0)
64
64
  rspec-support (3.11.0)
65
- rubocop (1.35.1)
65
+ rubocop (1.36.0)
66
66
  json (~> 2.3)
67
67
  parallel (~> 1.10)
68
68
  parser (>= 3.1.2.1)
@@ -1,4 +1,4 @@
1
1
  require 'mkmf'
2
2
  $INCFLAGS << " -I$(top_srcdir)" if $extmk
3
- $CFLAGS += " -std=c99 "
3
+ append_cflags ['-std=c99']
4
4
  create_makefile 'rbs_extension'
@@ -18,6 +18,7 @@ start:
18
18
  case 0x00000000: goto yy1;
19
19
  case '\t':
20
20
  case '\n':
21
+ case '\r':
21
22
  case ' ': goto yy4;
22
23
  case '!': goto yy6;
23
24
  case '"': goto yy8;
@@ -117,23 +118,27 @@ yy1:
117
118
  skip(state);
118
119
  #line 138 "ext/rbs_extension/lexer.re"
119
120
  { return next_token(state, pEOF); }
120
- #line 121 "ext/rbs_extension/lexer.c"
121
+ #line 122 "ext/rbs_extension/lexer.c"
121
122
  yy2:
122
123
  skip(state);
123
124
  yy3:
124
125
  #line 139 "ext/rbs_extension/lexer.re"
125
126
  { return next_token(state, ErrorToken); }
126
- #line 127 "ext/rbs_extension/lexer.c"
127
+ #line 128 "ext/rbs_extension/lexer.c"
127
128
  yy4:
128
129
  skip(state);
129
130
  yych = peek(state);
130
- if (yych <= 0x00000008) goto yy5;
131
- if (yych <= '\n') goto yy4;
132
- if (yych == ' ') goto yy4;
131
+ if (yych <= '\f') {
132
+ if (yych <= 0x00000008) goto yy5;
133
+ if (yych <= '\n') goto yy4;
134
+ } else {
135
+ if (yych <= '\r') goto yy4;
136
+ if (yych == ' ') goto yy4;
137
+ }
133
138
  yy5:
134
139
  #line 137 "ext/rbs_extension/lexer.re"
135
140
  { state->start = state->current; goto start; }
136
- #line 137 "ext/rbs_extension/lexer.c"
141
+ #line 142 "ext/rbs_extension/lexer.c"
137
142
  yy6:
138
143
  skip(state);
139
144
  yych = peek(state);
@@ -142,7 +147,7 @@ yy6:
142
147
  yy7:
143
148
  #line 49 "ext/rbs_extension/lexer.re"
144
149
  { return next_token(state, tOPERATOR); }
145
- #line 146 "ext/rbs_extension/lexer.c"
150
+ #line 151 "ext/rbs_extension/lexer.c"
146
151
  yy8:
147
152
  yyaccept = 0;
148
153
  skip(state);
@@ -163,7 +168,7 @@ yy10:
163
168
  state->first_token_of_line ? tLINECOMMENT : tCOMMENT
164
169
  );
165
170
  }
166
- #line 167 "ext/rbs_extension/lexer.c"
171
+ #line 172 "ext/rbs_extension/lexer.c"
167
172
  yy11:
168
173
  skip(state);
169
174
  yych = peek(state);
@@ -221,7 +226,7 @@ yy13:
221
226
  skip(state);
222
227
  #line 34 "ext/rbs_extension/lexer.re"
223
228
  { return next_token(state, pAMP); }
224
- #line 225 "ext/rbs_extension/lexer.c"
229
+ #line 230 "ext/rbs_extension/lexer.c"
225
230
  yy14:
226
231
  yyaccept = 0;
227
232
  skip(state);
@@ -233,19 +238,19 @@ yy15:
233
238
  skip(state);
234
239
  #line 25 "ext/rbs_extension/lexer.re"
235
240
  { return next_token(state, pLPAREN); }
236
- #line 237 "ext/rbs_extension/lexer.c"
241
+ #line 242 "ext/rbs_extension/lexer.c"
237
242
  yy16:
238
243
  skip(state);
239
244
  #line 26 "ext/rbs_extension/lexer.re"
240
245
  { return next_token(state, pRPAREN); }
241
- #line 242 "ext/rbs_extension/lexer.c"
246
+ #line 247 "ext/rbs_extension/lexer.c"
242
247
  yy17:
243
248
  skip(state);
244
249
  yych = peek(state);
245
250
  if (yych == '*') goto yy79;
246
251
  #line 36 "ext/rbs_extension/lexer.re"
247
252
  { return next_token(state, pSTAR); }
248
- #line 249 "ext/rbs_extension/lexer.c"
253
+ #line 254 "ext/rbs_extension/lexer.c"
249
254
  yy18:
250
255
  skip(state);
251
256
  yych = peek(state);
@@ -257,7 +262,7 @@ yy19:
257
262
  skip(state);
258
263
  #line 31 "ext/rbs_extension/lexer.re"
259
264
  { return next_token(state, pCOMMA); }
260
- #line 261 "ext/rbs_extension/lexer.c"
265
+ #line 266 "ext/rbs_extension/lexer.c"
261
266
  yy20:
262
267
  skip(state);
263
268
  yych = peek(state);
@@ -279,7 +284,7 @@ yy21:
279
284
  yy22:
280
285
  #line 38 "ext/rbs_extension/lexer.re"
281
286
  { return next_token(state, pDOT); }
282
- #line 283 "ext/rbs_extension/lexer.c"
287
+ #line 288 "ext/rbs_extension/lexer.c"
283
288
  yy23:
284
289
  skip(state);
285
290
  goto yy7;
@@ -292,7 +297,7 @@ yy24:
292
297
  yy25:
293
298
  #line 52 "ext/rbs_extension/lexer.re"
294
299
  { return next_token(state, tINTEGER); }
295
- #line 296 "ext/rbs_extension/lexer.c"
300
+ #line 301 "ext/rbs_extension/lexer.c"
296
301
  yy26:
297
302
  yyaccept = 3;
298
303
  skip(state);
@@ -377,7 +382,7 @@ yy26:
377
382
  yy27:
378
383
  #line 45 "ext/rbs_extension/lexer.re"
379
384
  { return next_token(state, pCOLON); }
380
- #line 381 "ext/rbs_extension/lexer.c"
385
+ #line 386 "ext/rbs_extension/lexer.c"
381
386
  yy28:
382
387
  skip(state);
383
388
  yych = peek(state);
@@ -387,7 +392,7 @@ yy28:
387
392
  yy29:
388
393
  #line 47 "ext/rbs_extension/lexer.re"
389
394
  { return next_token(state, pLT); }
390
- #line 391 "ext/rbs_extension/lexer.c"
395
+ #line 396 "ext/rbs_extension/lexer.c"
391
396
  yy30:
392
397
  skip(state);
393
398
  yych = peek(state);
@@ -401,7 +406,7 @@ yy30:
401
406
  yy31:
402
407
  #line 44 "ext/rbs_extension/lexer.re"
403
408
  { return next_token(state, pEQ); }
404
- #line 405 "ext/rbs_extension/lexer.c"
409
+ #line 410 "ext/rbs_extension/lexer.c"
405
410
  yy32:
406
411
  skip(state);
407
412
  yych = peek(state);
@@ -412,7 +417,7 @@ yy33:
412
417
  skip(state);
413
418
  #line 35 "ext/rbs_extension/lexer.re"
414
419
  { return next_token(state, pQUESTION); }
415
- #line 416 "ext/rbs_extension/lexer.c"
420
+ #line 421 "ext/rbs_extension/lexer.c"
416
421
  yy34:
417
422
  yyaccept = 0;
418
423
  skip(state);
@@ -450,24 +455,24 @@ yy35:
450
455
  yy36:
451
456
  #line 123 "ext/rbs_extension/lexer.re"
452
457
  { return next_token(state, tUIDENT); }
453
- #line 454 "ext/rbs_extension/lexer.c"
458
+ #line 459 "ext/rbs_extension/lexer.c"
454
459
  yy37:
455
460
  skip(state);
456
461
  yych = peek(state);
457
462
  if (yych == ']') goto yy106;
458
463
  #line 27 "ext/rbs_extension/lexer.re"
459
464
  { return next_token(state, pLBRACKET); }
460
- #line 461 "ext/rbs_extension/lexer.c"
465
+ #line 466 "ext/rbs_extension/lexer.c"
461
466
  yy38:
462
467
  skip(state);
463
468
  #line 28 "ext/rbs_extension/lexer.re"
464
469
  { return next_token(state, pRBRACKET); }
465
- #line 466 "ext/rbs_extension/lexer.c"
470
+ #line 471 "ext/rbs_extension/lexer.c"
466
471
  yy39:
467
472
  skip(state);
468
473
  #line 33 "ext/rbs_extension/lexer.re"
469
474
  { return next_token(state, pHAT); }
470
- #line 471 "ext/rbs_extension/lexer.c"
475
+ #line 476 "ext/rbs_extension/lexer.c"
471
476
  yy40:
472
477
  skip(state);
473
478
  yych = peek(state);
@@ -490,7 +495,7 @@ yy40:
490
495
  yy41:
491
496
  #line 126 "ext/rbs_extension/lexer.re"
492
497
  { return next_token(state, tULLIDENT); }
493
- #line 494 "ext/rbs_extension/lexer.c"
498
+ #line 499 "ext/rbs_extension/lexer.c"
494
499
  yy42:
495
500
  yyaccept = 4;
496
501
  skip(state);
@@ -505,7 +510,7 @@ yy42:
505
510
  yy43:
506
511
  #line 40 "ext/rbs_extension/lexer.re"
507
512
  { return next_token(state, tOPERATOR); }
508
- #line 509 "ext/rbs_extension/lexer.c"
513
+ #line 514 "ext/rbs_extension/lexer.c"
509
514
  yy44:
510
515
  skip(state);
511
516
  yych = peek(state);
@@ -515,7 +520,7 @@ yy44:
515
520
  yy45:
516
521
  #line 122 "ext/rbs_extension/lexer.re"
517
522
  { return next_token(state, tLIDENT); }
518
- #line 519 "ext/rbs_extension/lexer.c"
523
+ #line 524 "ext/rbs_extension/lexer.c"
519
524
  yy46:
520
525
  skip(state);
521
526
  yych = peek(state);
@@ -623,17 +628,17 @@ yy62:
623
628
  skip(state);
624
629
  #line 29 "ext/rbs_extension/lexer.re"
625
630
  { return next_token(state, pLBRACE); }
626
- #line 627 "ext/rbs_extension/lexer.c"
631
+ #line 632 "ext/rbs_extension/lexer.c"
627
632
  yy63:
628
633
  skip(state);
629
634
  #line 32 "ext/rbs_extension/lexer.re"
630
635
  { return next_token(state, pBAR); }
631
- #line 632 "ext/rbs_extension/lexer.c"
636
+ #line 637 "ext/rbs_extension/lexer.c"
632
637
  yy64:
633
638
  skip(state);
634
639
  #line 30 "ext/rbs_extension/lexer.re"
635
640
  { return next_token(state, pRBRACE); }
636
- #line 637 "ext/rbs_extension/lexer.c"
641
+ #line 642 "ext/rbs_extension/lexer.c"
637
642
  yy65:
638
643
  skip(state);
639
644
  yych = peek(state);
@@ -677,7 +682,7 @@ yy68:
677
682
  skip(state);
678
683
  #line 100 "ext/rbs_extension/lexer.re"
679
684
  { return next_token(state, tDQSTRING); }
680
- #line 681 "ext/rbs_extension/lexer.c"
685
+ #line 686 "ext/rbs_extension/lexer.c"
681
686
  yy69:
682
687
  skip(state);
683
688
  yych = peek(state);
@@ -734,7 +739,7 @@ yy70:
734
739
  yy71:
735
740
  #line 133 "ext/rbs_extension/lexer.re"
736
741
  { return next_token(state, tGIDENT); }
737
- #line 738 "ext/rbs_extension/lexer.c"
742
+ #line 743 "ext/rbs_extension/lexer.c"
738
743
  yy72:
739
744
  skip(state);
740
745
  goto yy71;
@@ -775,7 +780,7 @@ yy76:
775
780
  yy77:
776
781
  #line 101 "ext/rbs_extension/lexer.re"
777
782
  { return next_token(state, tSQSTRING); }
778
- #line 779 "ext/rbs_extension/lexer.c"
783
+ #line 784 "ext/rbs_extension/lexer.c"
779
784
  yy78:
780
785
  skip(state);
781
786
  yych = peek(state);
@@ -791,12 +796,12 @@ yy79:
791
796
  skip(state);
792
797
  #line 37 "ext/rbs_extension/lexer.re"
793
798
  { return next_token(state, pSTAR2); }
794
- #line 795 "ext/rbs_extension/lexer.c"
799
+ #line 800 "ext/rbs_extension/lexer.c"
795
800
  yy80:
796
801
  skip(state);
797
802
  #line 42 "ext/rbs_extension/lexer.re"
798
803
  { return next_token(state, pARROW); }
799
- #line 800 "ext/rbs_extension/lexer.c"
804
+ #line 805 "ext/rbs_extension/lexer.c"
800
805
  yy81:
801
806
  skip(state);
802
807
  yych = peek(state);
@@ -810,7 +815,7 @@ yy82:
810
815
  yy83:
811
816
  #line 120 "ext/rbs_extension/lexer.re"
812
817
  { return next_token(state, tSYMBOL); }
813
- #line 814 "ext/rbs_extension/lexer.c"
818
+ #line 819 "ext/rbs_extension/lexer.c"
814
819
  yy84:
815
820
  skip(state);
816
821
  yych = peek(state);
@@ -896,7 +901,7 @@ yy90:
896
901
  skip(state);
897
902
  #line 46 "ext/rbs_extension/lexer.re"
898
903
  { return next_token(state, pCOLON2); }
899
- #line 900 "ext/rbs_extension/lexer.c"
904
+ #line 905 "ext/rbs_extension/lexer.c"
900
905
  yy91:
901
906
  skip(state);
902
907
  yych = peek(state);
@@ -952,7 +957,7 @@ yy95:
952
957
  yy96:
953
958
  #line 116 "ext/rbs_extension/lexer.re"
954
959
  { return next_token(state, tSYMBOL); }
955
- #line 956 "ext/rbs_extension/lexer.c"
960
+ #line 961 "ext/rbs_extension/lexer.c"
956
961
  yy97:
957
962
  skip(state);
958
963
  yych = peek(state);
@@ -972,7 +977,7 @@ yy100:
972
977
  skip(state);
973
978
  #line 43 "ext/rbs_extension/lexer.re"
974
979
  { return next_token(state, pFATARROW); }
975
- #line 976 "ext/rbs_extension/lexer.c"
980
+ #line 981 "ext/rbs_extension/lexer.c"
976
981
  yy101:
977
982
  skip(state);
978
983
  yych = peek(state);
@@ -1003,24 +1008,24 @@ yy102:
1003
1008
  yy103:
1004
1009
  #line 130 "ext/rbs_extension/lexer.re"
1005
1010
  { return next_token(state, tAIDENT); }
1006
- #line 1007 "ext/rbs_extension/lexer.c"
1011
+ #line 1012 "ext/rbs_extension/lexer.c"
1007
1012
  yy104:
1008
1013
  skip(state);
1009
1014
  #line 127 "ext/rbs_extension/lexer.re"
1010
1015
  { return next_token(state, tBANGIDENT); }
1011
- #line 1012 "ext/rbs_extension/lexer.c"
1016
+ #line 1017 "ext/rbs_extension/lexer.c"
1012
1017
  yy105:
1013
1018
  skip(state);
1014
1019
  #line 128 "ext/rbs_extension/lexer.re"
1015
1020
  { return next_token(state, tEQIDENT); }
1016
- #line 1017 "ext/rbs_extension/lexer.c"
1021
+ #line 1022 "ext/rbs_extension/lexer.c"
1017
1022
  yy106:
1018
1023
  skip(state);
1019
1024
  yych = peek(state);
1020
1025
  if (yych == '=') goto yy23;
1021
1026
  #line 48 "ext/rbs_extension/lexer.re"
1022
1027
  { return next_token(state, pAREF_OPR); }
1023
- #line 1024 "ext/rbs_extension/lexer.c"
1028
+ #line 1029 "ext/rbs_extension/lexer.c"
1024
1029
  yy107:
1025
1030
  skip(state);
1026
1031
  yych = peek(state);
@@ -1043,7 +1048,7 @@ yy107:
1043
1048
  yy108:
1044
1049
  #line 124 "ext/rbs_extension/lexer.re"
1045
1050
  { return next_token(state, tULLIDENT); }
1046
- #line 1047 "ext/rbs_extension/lexer.c"
1051
+ #line 1052 "ext/rbs_extension/lexer.c"
1047
1052
  yy109:
1048
1053
  skip(state);
1049
1054
  yych = peek(state);
@@ -1066,7 +1071,7 @@ yy109:
1066
1071
  yy110:
1067
1072
  #line 125 "ext/rbs_extension/lexer.re"
1068
1073
  { return next_token(state, tULIDENT); }
1069
- #line 1070 "ext/rbs_extension/lexer.c"
1074
+ #line 1075 "ext/rbs_extension/lexer.c"
1070
1075
  yy111:
1071
1076
  skip(state);
1072
1077
  yych = peek(state);
@@ -1147,7 +1152,7 @@ yy120:
1147
1152
  yy121:
1148
1153
  #line 78 "ext/rbs_extension/lexer.re"
1149
1154
  { return next_token(state, kIN); }
1150
- #line 1151 "ext/rbs_extension/lexer.c"
1155
+ #line 1156 "ext/rbs_extension/lexer.c"
1151
1156
  yy122:
1152
1157
  skip(state);
1153
1158
  yych = peek(state);
@@ -1257,12 +1262,12 @@ yy140:
1257
1262
  skip(state);
1258
1263
  #line 39 "ext/rbs_extension/lexer.re"
1259
1264
  { return next_token(state, pDOT3); }
1260
- #line 1261 "ext/rbs_extension/lexer.c"
1265
+ #line 1266 "ext/rbs_extension/lexer.c"
1261
1266
  yy141:
1262
1267
  skip(state);
1263
1268
  #line 102 "ext/rbs_extension/lexer.re"
1264
1269
  { return next_token(state, tDQSYMBOL); }
1265
- #line 1266 "ext/rbs_extension/lexer.c"
1270
+ #line 1271 "ext/rbs_extension/lexer.c"
1266
1271
  yy142:
1267
1272
  skip(state);
1268
1273
  yych = peek(state);
@@ -1319,7 +1324,7 @@ yy143:
1319
1324
  yy144:
1320
1325
  #line 119 "ext/rbs_extension/lexer.re"
1321
1326
  { return next_token(state, tSYMBOL); }
1322
- #line 1323 "ext/rbs_extension/lexer.c"
1327
+ #line 1328 "ext/rbs_extension/lexer.c"
1323
1328
  yy145:
1324
1329
  skip(state);
1325
1330
  goto yy144;
@@ -1328,7 +1333,7 @@ yy146:
1328
1333
  yy147:
1329
1334
  #line 103 "ext/rbs_extension/lexer.re"
1330
1335
  { return next_token(state, tSQSYMBOL); }
1331
- #line 1332 "ext/rbs_extension/lexer.c"
1336
+ #line 1337 "ext/rbs_extension/lexer.c"
1332
1337
  yy148:
1333
1338
  skip(state);
1334
1339
  yych = peek(state);
@@ -1385,7 +1390,7 @@ yy152:
1385
1390
  yy153:
1386
1391
  #line 117 "ext/rbs_extension/lexer.re"
1387
1392
  { return next_token(state, tSYMBOL); }
1388
- #line 1389 "ext/rbs_extension/lexer.c"
1393
+ #line 1394 "ext/rbs_extension/lexer.c"
1389
1394
  yy154:
1390
1395
  skip(state);
1391
1396
  goto yy96;
@@ -1407,12 +1412,12 @@ yy155:
1407
1412
  yy156:
1408
1413
  #line 131 "ext/rbs_extension/lexer.re"
1409
1414
  { return next_token(state, tA2IDENT); }
1410
- #line 1411 "ext/rbs_extension/lexer.c"
1415
+ #line 1416 "ext/rbs_extension/lexer.c"
1411
1416
  yy157:
1412
1417
  skip(state);
1413
1418
  #line 41 "ext/rbs_extension/lexer.re"
1414
1419
  { return next_token(state, tQIDENT); }
1415
- #line 1416 "ext/rbs_extension/lexer.c"
1420
+ #line 1421 "ext/rbs_extension/lexer.c"
1416
1421
  yy158:
1417
1422
  skip(state);
1418
1423
  yych = peek(state);
@@ -1450,7 +1455,7 @@ yy161:
1450
1455
  yy162:
1451
1456
  #line 72 "ext/rbs_extension/lexer.re"
1452
1457
  { return next_token(state, kBOT); }
1453
- #line 1454 "ext/rbs_extension/lexer.c"
1458
+ #line 1459 "ext/rbs_extension/lexer.c"
1454
1459
  yy163:
1455
1460
  skip(state);
1456
1461
  yych = peek(state);
@@ -1478,7 +1483,7 @@ yy164:
1478
1483
  yy165:
1479
1484
  #line 74 "ext/rbs_extension/lexer.re"
1480
1485
  { return next_token(state, kDEF); }
1481
- #line 1482 "ext/rbs_extension/lexer.c"
1486
+ #line 1487 "ext/rbs_extension/lexer.c"
1482
1487
  yy166:
1483
1488
  skip(state);
1484
1489
  yych = peek(state);
@@ -1501,7 +1506,7 @@ yy166:
1501
1506
  yy167:
1502
1507
  #line 75 "ext/rbs_extension/lexer.re"
1503
1508
  { return next_token(state, kEND); }
1504
- #line 1505 "ext/rbs_extension/lexer.c"
1509
+ #line 1510 "ext/rbs_extension/lexer.c"
1505
1510
  yy168:
1506
1511
  skip(state);
1507
1512
  yych = peek(state);
@@ -1554,7 +1559,7 @@ yy174:
1554
1559
  yy175:
1555
1560
  #line 83 "ext/rbs_extension/lexer.re"
1556
1561
  { return next_token(state, kNIL); }
1557
- #line 1558 "ext/rbs_extension/lexer.c"
1562
+ #line 1563 "ext/rbs_extension/lexer.c"
1558
1563
  yy176:
1559
1564
  skip(state);
1560
1565
  yych = peek(state);
@@ -1577,7 +1582,7 @@ yy176:
1577
1582
  yy177:
1578
1583
  #line 84 "ext/rbs_extension/lexer.re"
1579
1584
  { return next_token(state, kOUT); }
1580
- #line 1581 "ext/rbs_extension/lexer.c"
1585
+ #line 1586 "ext/rbs_extension/lexer.c"
1581
1586
  yy178:
1582
1587
  skip(state);
1583
1588
  yych = peek(state);
@@ -1625,7 +1630,7 @@ yy183:
1625
1630
  yy184:
1626
1631
  #line 90 "ext/rbs_extension/lexer.re"
1627
1632
  { return next_token(state, kTOP); }
1628
- #line 1629 "ext/rbs_extension/lexer.c"
1633
+ #line 1634 "ext/rbs_extension/lexer.c"
1629
1634
  yy185:
1630
1635
  skip(state);
1631
1636
  yych = peek(state);
@@ -1655,27 +1660,27 @@ yy190:
1655
1660
  skip(state);
1656
1661
  #line 55 "ext/rbs_extension/lexer.re"
1657
1662
  { return next_token(state, tANNOTATION); }
1658
- #line 1659 "ext/rbs_extension/lexer.c"
1663
+ #line 1664 "ext/rbs_extension/lexer.c"
1659
1664
  yy191:
1660
1665
  skip(state);
1661
1666
  #line 58 "ext/rbs_extension/lexer.re"
1662
1667
  { return next_token(state, tANNOTATION); }
1663
- #line 1664 "ext/rbs_extension/lexer.c"
1668
+ #line 1669 "ext/rbs_extension/lexer.c"
1664
1669
  yy192:
1665
1670
  skip(state);
1666
1671
  #line 56 "ext/rbs_extension/lexer.re"
1667
1672
  { return next_token(state, tANNOTATION); }
1668
- #line 1669 "ext/rbs_extension/lexer.c"
1673
+ #line 1674 "ext/rbs_extension/lexer.c"
1669
1674
  yy193:
1670
1675
  skip(state);
1671
1676
  #line 54 "ext/rbs_extension/lexer.re"
1672
1677
  { return next_token(state, tANNOTATION); }
1673
- #line 1674 "ext/rbs_extension/lexer.c"
1678
+ #line 1679 "ext/rbs_extension/lexer.c"
1674
1679
  yy194:
1675
1680
  skip(state);
1676
1681
  #line 57 "ext/rbs_extension/lexer.re"
1677
1682
  { return next_token(state, tANNOTATION); }
1678
- #line 1679 "ext/rbs_extension/lexer.c"
1683
+ #line 1684 "ext/rbs_extension/lexer.c"
1679
1684
  yy195:
1680
1685
  yyaccept = 6;
1681
1686
  skip(state);
@@ -1712,7 +1717,7 @@ yy196:
1712
1717
  yy197:
1713
1718
  #line 118 "ext/rbs_extension/lexer.re"
1714
1719
  { return next_token(state, tSYMBOL); }
1715
- #line 1716 "ext/rbs_extension/lexer.c"
1720
+ #line 1721 "ext/rbs_extension/lexer.c"
1716
1721
  yy198:
1717
1722
  skip(state);
1718
1723
  goto yy153;
@@ -1748,7 +1753,7 @@ yy201:
1748
1753
  yy202:
1749
1754
  #line 71 "ext/rbs_extension/lexer.re"
1750
1755
  { return next_token(state, kBOOL); }
1751
- #line 1752 "ext/rbs_extension/lexer.c"
1756
+ #line 1757 "ext/rbs_extension/lexer.c"
1752
1757
  yy203:
1753
1758
  skip(state);
1754
1759
  yych = peek(state);
@@ -1821,7 +1826,7 @@ yy213:
1821
1826
  yy214:
1822
1827
  #line 88 "ext/rbs_extension/lexer.re"
1823
1828
  { return next_token(state, kSELF); }
1824
- #line 1825 "ext/rbs_extension/lexer.c"
1829
+ #line 1830 "ext/rbs_extension/lexer.c"
1825
1830
  yy215:
1826
1831
  skip(state);
1827
1832
  yych = peek(state);
@@ -1849,7 +1854,7 @@ yy216:
1849
1854
  yy217:
1850
1855
  #line 91 "ext/rbs_extension/lexer.re"
1851
1856
  { return next_token(state, kTRUE); }
1852
- #line 1853 "ext/rbs_extension/lexer.c"
1857
+ #line 1858 "ext/rbs_extension/lexer.c"
1853
1858
  yy218:
1854
1859
  skip(state);
1855
1860
  yych = peek(state);
@@ -1872,7 +1877,7 @@ yy218:
1872
1877
  yy219:
1873
1878
  #line 92 "ext/rbs_extension/lexer.re"
1874
1879
  { return next_token(state, kTYPE); }
1875
- #line 1876 "ext/rbs_extension/lexer.c"
1880
+ #line 1881 "ext/rbs_extension/lexer.c"
1876
1881
  yy220:
1877
1882
  skip(state);
1878
1883
  yych = peek(state);
@@ -1905,7 +1910,7 @@ yy222:
1905
1910
  yy223:
1906
1911
  #line 95 "ext/rbs_extension/lexer.re"
1907
1912
  { return next_token(state, kVOID); }
1908
- #line 1909 "ext/rbs_extension/lexer.c"
1913
+ #line 1914 "ext/rbs_extension/lexer.c"
1909
1914
  yy224:
1910
1915
  skip(state);
1911
1916
  goto yy197;
@@ -1931,7 +1936,7 @@ yy225:
1931
1936
  yy226:
1932
1937
  #line 67 "ext/rbs_extension/lexer.re"
1933
1938
  { return next_token(state, kALIAS); }
1934
- #line 1935 "ext/rbs_extension/lexer.c"
1939
+ #line 1940 "ext/rbs_extension/lexer.c"
1935
1940
  yy227:
1936
1941
  skip(state);
1937
1942
  yych = peek(state);
@@ -1965,7 +1970,7 @@ yy228:
1965
1970
  yy229:
1966
1971
  #line 73 "ext/rbs_extension/lexer.re"
1967
1972
  { return next_token(state, kCLASS); }
1968
- #line 1969 "ext/rbs_extension/lexer.c"
1973
+ #line 1974 "ext/rbs_extension/lexer.c"
1969
1974
  yy230:
1970
1975
  skip(state);
1971
1976
  yych = peek(state);
@@ -1993,7 +1998,7 @@ yy231:
1993
1998
  yy232:
1994
1999
  #line 77 "ext/rbs_extension/lexer.re"
1995
2000
  { return next_token(state, kFALSE); }
1996
- #line 1997 "ext/rbs_extension/lexer.c"
2001
+ #line 2002 "ext/rbs_extension/lexer.c"
1997
2002
  yy233:
1998
2003
  skip(state);
1999
2004
  yych = peek(state);
@@ -2081,7 +2086,7 @@ yy246:
2081
2086
  yy247:
2082
2087
  #line 76 "ext/rbs_extension/lexer.re"
2083
2088
  { return next_token(state, kEXTEND); }
2084
- #line 2085 "ext/rbs_extension/lexer.c"
2089
+ #line 2090 "ext/rbs_extension/lexer.c"
2085
2090
  yy248:
2086
2091
  skip(state);
2087
2092
  yych = peek(state);
@@ -2119,7 +2124,7 @@ yy251:
2119
2124
  yy252:
2120
2125
  #line 82 "ext/rbs_extension/lexer.re"
2121
2126
  { return next_token(state, kMODULE); }
2122
- #line 2123 "ext/rbs_extension/lexer.c"
2127
+ #line 2128 "ext/rbs_extension/lexer.c"
2123
2128
  yy253:
2124
2129
  skip(state);
2125
2130
  yych = peek(state);
@@ -2152,7 +2157,7 @@ yy255:
2152
2157
  yy256:
2153
2158
  #line 87 "ext/rbs_extension/lexer.re"
2154
2159
  { return next_token(state, kPUBLIC); }
2155
- #line 2156 "ext/rbs_extension/lexer.c"
2160
+ #line 2161 "ext/rbs_extension/lexer.c"
2156
2161
  yy257:
2157
2162
  skip(state);
2158
2163
  yych = peek(state);
@@ -2205,7 +2210,7 @@ yy263:
2205
2210
  yy264:
2206
2211
  #line 79 "ext/rbs_extension/lexer.re"
2207
2212
  { return next_token(state, kINCLUDE); }
2208
- #line 2209 "ext/rbs_extension/lexer.c"
2213
+ #line 2214 "ext/rbs_extension/lexer.c"
2209
2214
  yy265:
2210
2215
  skip(state);
2211
2216
  yych = peek(state);
@@ -2238,7 +2243,7 @@ yy267:
2238
2243
  yy268:
2239
2244
  #line 85 "ext/rbs_extension/lexer.re"
2240
2245
  { return next_token(state, kPREPEND); }
2241
- #line 2242 "ext/rbs_extension/lexer.c"
2246
+ #line 2247 "ext/rbs_extension/lexer.c"
2242
2247
  yy269:
2243
2248
  skip(state);
2244
2249
  yych = peek(state);
@@ -2261,7 +2266,7 @@ yy269:
2261
2266
  yy270:
2262
2267
  #line 86 "ext/rbs_extension/lexer.re"
2263
2268
  { return next_token(state, kPRIVATE); }
2264
- #line 2265 "ext/rbs_extension/lexer.c"
2269
+ #line 2270 "ext/rbs_extension/lexer.c"
2265
2270
  yy271:
2266
2271
  skip(state);
2267
2272
  yych = peek(state);
@@ -2294,7 +2299,7 @@ yy273:
2294
2299
  yy274:
2295
2300
  #line 94 "ext/rbs_extension/lexer.re"
2296
2301
  { return next_token(state, kUNTYPED); }
2297
- #line 2298 "ext/rbs_extension/lexer.c"
2302
+ #line 2303 "ext/rbs_extension/lexer.c"
2298
2303
  yy275:
2299
2304
  skip(state);
2300
2305
  yych = peek(state);
@@ -2332,7 +2337,7 @@ yy278:
2332
2337
  yy279:
2333
2338
  #line 80 "ext/rbs_extension/lexer.re"
2334
2339
  { return next_token(state, kINSTANCE); }
2335
- #line 2336 "ext/rbs_extension/lexer.c"
2340
+ #line 2341 "ext/rbs_extension/lexer.c"
2336
2341
  yy280:
2337
2342
  skip(state);
2338
2343
  yych = peek(state);
@@ -2385,7 +2390,7 @@ yy286:
2385
2390
  yy287:
2386
2391
  #line 81 "ext/rbs_extension/lexer.re"
2387
2392
  { return next_token(state, kINTERFACE); }
2388
- #line 2389 "ext/rbs_extension/lexer.c"
2393
+ #line 2394 "ext/rbs_extension/lexer.c"
2389
2394
  yy288:
2390
2395
  skip(state);
2391
2396
  yych = peek(state);
@@ -2408,7 +2413,7 @@ yy288:
2408
2413
  yy289:
2409
2414
  #line 89 "ext/rbs_extension/lexer.re"
2410
2415
  { return next_token(state, kSINGLETON); }
2411
- #line 2412 "ext/rbs_extension/lexer.c"
2416
+ #line 2417 "ext/rbs_extension/lexer.c"
2412
2417
  yy290:
2413
2418
  skip(state);
2414
2419
  yych = peek(state);
@@ -2431,7 +2436,7 @@ yy290:
2431
2436
  yy291:
2432
2437
  #line 93 "ext/rbs_extension/lexer.re"
2433
2438
  { return next_token(state, kUNCHECKED); }
2434
- #line 2435 "ext/rbs_extension/lexer.c"
2439
+ #line 2440 "ext/rbs_extension/lexer.c"
2435
2440
  yy292:
2436
2441
  skip(state);
2437
2442
  yych = peek(state);
@@ -2474,7 +2479,7 @@ yy296:
2474
2479
  yy297:
2475
2480
  #line 69 "ext/rbs_extension/lexer.re"
2476
2481
  { return next_token(state, kATTRREADER); }
2477
- #line 2478 "ext/rbs_extension/lexer.c"
2482
+ #line 2483 "ext/rbs_extension/lexer.c"
2478
2483
  yy298:
2479
2484
  skip(state);
2480
2485
  yych = peek(state);
@@ -2497,7 +2502,7 @@ yy298:
2497
2502
  yy299:
2498
2503
  #line 70 "ext/rbs_extension/lexer.re"
2499
2504
  { return next_token(state, kATTRWRITER); }
2500
- #line 2501 "ext/rbs_extension/lexer.c"
2505
+ #line 2506 "ext/rbs_extension/lexer.c"
2501
2506
  yy300:
2502
2507
  skip(state);
2503
2508
  yych = peek(state);
@@ -2523,7 +2528,7 @@ yy300:
2523
2528
  yy301:
2524
2529
  #line 68 "ext/rbs_extension/lexer.re"
2525
2530
  { return next_token(state, kATTRACCESSOR); }
2526
- #line 2527 "ext/rbs_extension/lexer.c"
2531
+ #line 2532 "ext/rbs_extension/lexer.c"
2527
2532
  }
2528
2533
  #line 140 "ext/rbs_extension/lexer.re"
2529
2534
 
@@ -132,7 +132,7 @@ start:
132
132
 
133
133
  "$" global_ident { return next_token(state, tGIDENT); }
134
134
 
135
- skip = [ \t\n]+;
135
+ skip = [ \t\n\r]+;
136
136
 
137
137
  skip { state->start = state->current; goto start; }
138
138
  "\x00" { return next_token(state, pEOF); }
data/lib/rbs/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RBS
4
- VERSION = "2.7.0.pre.1"
4
+ VERSION = "2.7.0.pre.2"
5
5
  end
data/sig/shims.rbs CHANGED
@@ -51,7 +51,7 @@ module RDoc
51
51
  def attributes: () -> Array[Attr]
52
52
  end
53
53
 
54
- module Markup
54
+ class Markup
55
55
  class Document
56
56
  include Enumerable[Document]
57
57
 
data/stdlib/set/0/set.rbs CHANGED
@@ -423,6 +423,15 @@ class Set[unchecked out A]
423
423
  #
424
424
  def reject!: () { (A) -> untyped } -> self
425
425
 
426
+ # <!--
427
+ # rdoc-file=lib/set.rb
428
+ # - compare_by_identity()
429
+ # -->
430
+ # Makes the set compare its elements by their identity and returns
431
+ # self. This method may not be supported by all subclasses of Set.
432
+ #
433
+ def compare_by_identity: () -> self
434
+
426
435
  # <!--
427
436
  # rdoc-file=lib/set.rb
428
437
  # - disjoint?(set)
@@ -467,6 +476,7 @@ class Set[unchecked out A]
467
476
  # given.
468
477
  #
469
478
  def each: () { (A) -> void } -> self
479
+ | () -> Enumerator[A, self]
470
480
 
471
481
  # <!--
472
482
  # rdoc-file=lib/set.rb
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0.pre.1
4
+ version: 2.7.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-02 00:00:00.000000000 Z
11
+ date: 2022-09-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: RBS is the language for type signatures for Ruby and standard library
14
14
  definitions.