parser 2.6.0.0 → 3.1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/lib/parser/all.rb +3 -0
  3. data/lib/parser/ast/processor.rb +48 -1
  4. data/lib/parser/base.rb +30 -6
  5. data/lib/parser/builders/default.rb +670 -38
  6. data/lib/parser/context.rb +24 -26
  7. data/lib/parser/current.rb +36 -9
  8. data/lib/parser/current_arg_stack.rb +46 -0
  9. data/lib/parser/diagnostic/engine.rb +1 -2
  10. data/lib/parser/diagnostic.rb +1 -1
  11. data/lib/parser/lexer/dedenter.rb +58 -49
  12. data/lib/parser/lexer/explanation.rb +1 -1
  13. data/lib/parser/lexer.rb +13837 -11893
  14. data/lib/parser/macruby.rb +2544 -2489
  15. data/lib/parser/max_numparam_stack.rb +56 -0
  16. data/lib/parser/messages.rb +78 -44
  17. data/lib/parser/meta.rb +13 -3
  18. data/lib/parser/ruby18.rb +2313 -2259
  19. data/lib/parser/ruby19.rb +2537 -2488
  20. data/lib/parser/ruby20.rb +2724 -2673
  21. data/lib/parser/ruby21.rb +2766 -2727
  22. data/lib/parser/ruby22.rb +2683 -2628
  23. data/lib/parser/ruby23.rb +2796 -2755
  24. data/lib/parser/ruby24.rb +2812 -2771
  25. data/lib/parser/ruby25.rb +2703 -2670
  26. data/lib/parser/ruby26.rb +2794 -2747
  27. data/lib/parser/ruby27.rb +7914 -0
  28. data/lib/parser/ruby28.rb +8047 -0
  29. data/lib/parser/ruby30.rb +8096 -0
  30. data/lib/parser/ruby31.rb +8354 -0
  31. data/lib/parser/rubymotion.rb +2527 -2485
  32. data/lib/parser/runner/ruby_parse.rb +2 -2
  33. data/lib/parser/runner/ruby_rewrite.rb +2 -2
  34. data/lib/parser/runner.rb +36 -2
  35. data/lib/parser/source/buffer.rb +53 -28
  36. data/lib/parser/source/comment/associator.rb +31 -8
  37. data/lib/parser/source/comment.rb +14 -1
  38. data/lib/parser/source/map/method_definition.rb +25 -0
  39. data/lib/parser/source/range.rb +19 -3
  40. data/lib/parser/source/tree_rewriter/action.rb +137 -28
  41. data/lib/parser/source/tree_rewriter.rb +144 -14
  42. data/lib/parser/static_environment.rb +23 -0
  43. data/lib/parser/tree_rewriter.rb +3 -3
  44. data/lib/parser/variables_stack.rb +36 -0
  45. data/lib/parser/version.rb +1 -1
  46. data/lib/parser.rb +4 -0
  47. data/parser.gemspec +12 -19
  48. metadata +34 -99
  49. data/.gitignore +0 -32
  50. data/.travis.yml +0 -45
  51. data/.yardopts +0 -21
  52. data/CHANGELOG.md +0 -943
  53. data/CONTRIBUTING.md +0 -17
  54. data/Gemfile +0 -10
  55. data/README.md +0 -301
  56. data/Rakefile +0 -165
  57. data/ci/run_rubocop_specs +0 -14
  58. data/doc/AST_FORMAT.md +0 -1735
  59. data/doc/CUSTOMIZATION.md +0 -37
  60. data/doc/INTERNALS.md +0 -21
  61. data/doc/css/.gitkeep +0 -0
  62. data/doc/css/common.css +0 -68
  63. data/lib/parser/lexer.rl +0 -2383
  64. data/lib/parser/macruby.y +0 -2198
  65. data/lib/parser/ruby18.y +0 -1934
  66. data/lib/parser/ruby19.y +0 -2175
  67. data/lib/parser/ruby20.y +0 -2353
  68. data/lib/parser/ruby21.y +0 -2357
  69. data/lib/parser/ruby22.y +0 -2364
  70. data/lib/parser/ruby23.y +0 -2370
  71. data/lib/parser/ruby24.y +0 -2408
  72. data/lib/parser/ruby25.y +0 -2405
  73. data/lib/parser/ruby26.y +0 -2413
  74. data/lib/parser/rubymotion.y +0 -2182
  75. data/test/bug_163/fixtures/input.rb +0 -5
  76. data/test/bug_163/fixtures/output.rb +0 -5
  77. data/test/bug_163/rewriter.rb +0 -20
  78. data/test/helper.rb +0 -52
  79. data/test/parse_helper.rb +0 -315
  80. data/test/racc_coverage_helper.rb +0 -133
  81. data/test/test_base.rb +0 -31
  82. data/test/test_current.rb +0 -27
  83. data/test/test_diagnostic.rb +0 -96
  84. data/test/test_diagnostic_engine.rb +0 -62
  85. data/test/test_encoding.rb +0 -99
  86. data/test/test_lexer.rb +0 -3543
  87. data/test/test_lexer_stack_state.rb +0 -78
  88. data/test/test_parse_helper.rb +0 -80
  89. data/test/test_parser.rb +0 -7087
  90. data/test/test_runner_rewrite.rb +0 -47
  91. data/test/test_source_buffer.rb +0 -162
  92. data/test/test_source_comment.rb +0 -36
  93. data/test/test_source_comment_associator.rb +0 -367
  94. data/test/test_source_map.rb +0 -15
  95. data/test/test_source_range.rb +0 -172
  96. data/test/test_source_rewriter.rb +0 -541
  97. data/test/test_source_rewriter_action.rb +0 -46
  98. data/test/test_source_tree_rewriter.rb +0 -173
  99. data/test/test_static_environment.rb +0 -45
  100. data/test/using_tree_rewriter/fixtures/input.rb +0 -3
  101. data/test/using_tree_rewriter/fixtures/output.rb +0 -3
  102. data/test/using_tree_rewriter/using_tree_rewriter.rb +0 -9
data/CHANGELOG.md DELETED
@@ -1,943 +0,0 @@
1
- Changelog
2
- =========
3
-
4
- v2.6.0.0 (2019-01-16)
5
- ---------------------
6
-
7
- API modifications:
8
- * 2.6.0 was released, unmark is as -dev. (#538) (Ilya Bylich)
9
-
10
- Bugs fixed:
11
- * Fix parsing of "\\\n" escaped sequences in various literals. (#539) (Ilya Bylich)
12
-
13
- v2.5.3.0 (2018-10-29)
14
- ---------------------
15
-
16
- Bugs fixed:
17
- * lexer.rl: Fix parsing of 'm :key => m do; m() do end; end'. (#526) (Ilya Bylich)
18
- * lexer.rl: Fix parsing of ambiguous 1re. (#523) (Ilya Bylich)
19
-
20
- v2.5.1.2 (2018-07-10)
21
- ---------------------
22
-
23
- Bugs fixed:
24
- * lexer.rl: Partially revert 5ba072d and properly handle 'm = -> *args do end'. (Ilya Bylich)
25
-
26
- v2.5.1.1 (2018-07-10)
27
- ---------------------
28
-
29
- Features implemented:
30
- * ruby26.y: Endless ranges support. (Ilya Bylich)
31
-
32
- Bugs fixed:
33
- * lexer.rl: Fix parsing of 'm = -> *args do end'. (Ilya Bylich)
34
- * AST::Processor: Properly recurse into "kwsplat" nodes (Nelson Elhage)
35
- * ruby24, ruby25, ruby26: Fix cmdargs after command_args followed by tLBRACE_ARG. This commit tracks upstream commit ruby/ruby@f168dbd. (Ilya Bylich)
36
- * lexer.rl: Fix parsing of `let (:a) { m do; end }`. (Ilya Bylich)
37
-
38
- v2.5.1.0 (2018-04-12)
39
- ---------------------
40
-
41
- API modifications:
42
- * Parser::Current: bump latest 2.2 branch to 2.2.10. (Ilya Bylich)
43
-
44
- Features implemented:
45
- * ruby26.y: Raise a syntax error on 'else' without 'rescue'. This commit tracks upstream commit ruby/ruby@140512d. (Ilya Bylich)
46
-
47
- Bugs fixed:
48
- * lexer.rl, Dedenter: Treat slash in heredocs as a line continuation. (Ilya Bylich)
49
- * lexer.rl: Fix parsing of `a ? b + '': nil`. (Ilya Bylich)
50
- * lexer.rl: Reject `m a: {} {}` and `m [] {}` since 25. (Ilya Bylich)
51
- * builders/default: allow class/module/dynamic constant definition in the method body if there's a sclass between them. (bug #490) (Ilya Bylich)
52
- * lexer.rl: Emit :!@ as :!, :~@ as :~. (Ilya Bylich)
53
- * parse{23,24,25}.y: use only CMDARG/COND _PUSH/POP for cmdarg/cond management. (bug #481) (Ilya Bylich)
54
- * lexer.rl: emit tSTRING_BEG and tSTRING_DBEG one by one to allow parser to properly manipulate cmdarg stack. (bug #480) (Ilya Bylich)
55
-
56
- v2.5.0.4 (2018-03-13)
57
- ---------------------
58
-
59
- Bugs fixed:
60
- * AST::Processor: handle on_index, on_indexasgn, on_lambda. (Ilya Bylich)
61
-
62
- v2.5.0.3 (2018-03-06)
63
- ---------------------
64
-
65
- Bugs fixed:
66
- * Accept `BEGIN` and `END` as correct method name (#463) (Masataka Pocke Kuwabara)
67
- * Parser::Source::Buffer: Fixed parsing of encoding comment when the file contains only shebang. (Ilya Bylich)
68
-
69
- v2.5.0.2 (2018-02-22)
70
- ---------------------
71
-
72
- Bugs fixed:
73
- * ruby24.y, ruby25.y: Replicate cmdargs handling from MRI. (#453) (Ilya Bylich)
74
-
75
- v2.5.0.1 (2018-02-21)
76
- ---------------------
77
-
78
- Features implemented:
79
- * builders/default: __ENCODING__: emit as s(:__ENCODING__) via AST opt-in. (whitequark)
80
- * ruby25.y: Extract expr_value_do rule. This commit tracks upstream commit ruby/ruby@508533f. (Ilya Bylich)
81
- * ruby25.y: Extract begin_block rule. This commit tracks upstream commit ruby/ruby@762d23c. (Ilya Bylich)
82
- * ruby25.y: Allow class and method definition in the while condition. (#432) (Ilya Bylich)
83
- * ruby25: Allow `-> do rescue; end`. (#431) (Ilya Bylich)
84
-
85
- Bugs fixed:
86
- * parser/current: latest released Ruby series is 2.5.x. (whitequark)
87
- * builders/default: x[], x[]=1: emit as s(:index), s(:indexasgn) via AST opt-in. (whitequark)
88
- * lexer.rl: "#{-> foo {}}": fix parsing of interpolated lambda with open args. (Ilya Bylich)
89
-
90
- v2.5.0.0 (2018-02-16)
91
- ---------------------
92
-
93
- API modifications:
94
- * Parser::Current: bump to 2.2.9 and 2.3.6. (Stan Hu)
95
- * Deprecate Parser::Rewriter (Marc-Andre Lafortune)
96
- * Deprecate Parser::Source::Rewriter (Marc-Andre Lafortune)
97
- * Change relative order of insert_after_multi and insert_before_multi for non-empty ranges (#399). (Marc-Andre Lafortune)
98
-
99
- Features implemented:
100
- * parse.y: Reject brace after literal arg. This commit tracks upstream commits ruby/ruby@9987109 and ruby/ruby@7d6965f. (Ilya Bylich)
101
- * ruby-parse: add an option for emitting AST as JSON. (Alex Rattray)
102
- * Add Parser::TreeRewriter (Marc-Andre Lafortune)
103
- * Add Parser::Rewriter#wrap to ease compatibility (Marc-Andre Lafortune)
104
- * Add Parser::Source::TreeRewriter (Marc-Andre Lafortune)
105
- * Add Range#\<=> and include Comparable (Marc-Andre Lafortune)
106
- * parse.y: disable tLPAREN_ARG state after local variable. (Ilya Bylich)
107
- * SourceBuffer#source_range (Marc-Andre Lafortune)
108
- * Range#adjust (Marc-Andre Lafortune)
109
- * Range#contains?, contained?, crossing? (Marc-Andre Lafortune)
110
- * Add Range#with. (Marc-André Lafortune)
111
- * lexer.rl: Relax restriction spaces inside "\u{...}". This commit tracks upstream commit ruby/ruby@7e8b910. (Ilya Bylich)
112
- * lexer.rl: Allow newlines in heredoc identifiers. This commit tracks upstream commit ruby/ruby@d25faa4. (Ilya Bylich)
113
- * lexer.rl: allow do after cmdarg in paren. This commit tracks upstream commit ruby/ruby@046c943. (Ilya Bylich)
114
-
115
- Bugs fixed:
116
- * Fixed magic encoding comment parsing when encoding comment is on the first line but not in the beginning. (Ilya Bylich)
117
- * lexer.rl: Parse '1if' as '1 if', '1rescue' as '1 rescue'. (Ilya Bylich)
118
- * lexer.rl: Save state before entering a block comment to enter it after =end. (Ilya Bylich)
119
- * parse.y: Prohibit return in class/module body except for singleton class. Replaced @def_level/in_def? in favor of context.indirectly_in_def?. This commit tracks upstream commit ruby/ruby@8c15f40ac. (Ilya Bylich)
120
- * lexer.rl: Emit :&& as tSYMBEG + tANDOP, :|| as tSYMBEG + tOROP. (Ilya Bylich)
121
- * ruby{24,25}.y: preserve cmdarg stack around do/end block [Bug #13073]. (Mateusz Lenik)
122
- * Parser::Lexer::State: Fixed #lexpop to match MRI behavior. (Ilya Bylich)
123
-
124
- v2.4.0.2 (2017-11-13)
125
- ---------------------
126
-
127
- API modifications:
128
- * parser/current: update for 2.3.5 release. (whitequark)
129
-
130
- v2.4.0.1 (2017-11-13)
131
- ---------------------
132
-
133
- API modifications:
134
- * parser/current: update for 2.3.4 release. (whitequark)
135
- * parser/current: update for Ruby 2.1.10 and 2.2.7. (Koichi ITO)
136
-
137
- Features implemented:
138
- * Allow rescue/else/ensure inside do/end blocks. [Feature #12906] (Ilya Bylich)
139
- * ruby25.y: branch parser. (Ilya Bylich)
140
-
141
- Bugs fixed:
142
- * Source::Comment::Associator: skip -*- magic comments -*-. (Denis Defreyne)
143
- * lexer.rl: "- 5": allow whitespace after tUNARY_NUM. (whitequark)
144
- * *ruby*.y, Builders::Default: "+5": don't lose location of the "+". (whitequark)
145
- * ruby-rewrite: allow passing paths to --load. (whitequark)
146
- * builders/default: "def x; else; end": don't crash. (whitequark)
147
-
148
- v2.4.0.0 (2017-02-07)
149
- ---------------------
150
-
151
- API modifications:
152
- * parser/current: update for the 2.4 release. (whitequark)
153
- * rubymotion.y: "a&.b": implement safe navigation operator in RubyMotion. (Mark Villacampa)
154
-
155
- Bugs fixed:
156
- * lexer.rl: "a &. b": accept &. in EXPR_ARG also. (whitequark)
157
-
158
- v2.3.3.1 (2016-12-02)
159
- ---------------------
160
-
161
- API modifications:
162
- * parser/current: update 2.2 warning to 2.2.6 (Jordan Moncharmont)
163
-
164
- v2.3.3.0 (2016-11-28)
165
- ---------------------
166
-
167
- API modifications:
168
- * parser/current: update 2.3 branch to 2.3.3. (Philip Arndt)
169
-
170
- Bugs fixed:
171
- * ruby24.y: "a += b += raise :x": fix errors with chained op-assignments. (whitequark)
172
- * ruby24.y: "p p{p(p);p p}, tap do end": preserve cmdarg stack. (whitequark)
173
- * ruby24.y: "a b{c d}, :e do end": go to EXPR_ENDARG after literal. (whitequark)
174
-
175
- v2.3.2.0 (2016-11-20)
176
- ---------------------
177
-
178
- API modifications:
179
- * parser/current: update 2.3 branch to 2.3.2. (whitequark)
180
- * Introduce (procarg0) node for a single required block argument. (Ilya Bylich)
181
-
182
- Bugs fixed:
183
- * {macruby,ruby{19,20,21,22,23,24}}.y: "x::A += m x": treat as constant assignment. (whitequark)
184
- * ruby24.y: "x += raise y rescue nil": bind rescue tighter than tOP_ASGN. (whitequark)
185
- * ruby24.y: "x = raise y rescue nil": bind rescue tighter than =. (whitequark)
186
- * Builders::Default: "begin; else; 1; end": fix a crash. (whitequark)
187
-
188
- v2.3.1.3 (2016-09-17)
189
- ---------------------
190
-
191
- API modifications:
192
- * parser/current: latest 2.3 release is 2.3.2. (Chris Riddoch)
193
-
194
- Features implemented:
195
- * ruby24.y: "f (g rescue nil)": allow stmt after tLPAREN_ARG. (whitequark)
196
-
197
- Bugs fixed:
198
- * ruby{18,19,20,21,22,23,24}.y: parse trailing commas as mlhs for block args "a.b{ |c,| d }" (fixes #312) (John Backus)
199
- * Builders::Default: "begin; 1; else; 2; end": do not drop else. (whitequark)
200
- * Builders::Default: "a&.b &&= c": fix safe navigation in lhs of op-assignment. (Ilya Bylich)
201
- * AST::Processor: handle "csend" as "send". (#301) (Ilya Bylich)
202
- * Parser::AST::Processor: do not spuriously modify ASTs. (Ilya Bylich)
203
- * lexer.rl: "%w\a b\": lex backslash-delimited words literals. (Masataka Kuwabara)
204
-
205
- v2.3.1.2 (2016-06-02)
206
- ---------------------
207
-
208
- API modifications:
209
- * parser/current: update 2.2 warning to 2.2.5 (#295) (Kohei Suzuki)
210
-
211
- Bugs fixed:
212
- * AST_FORMAT: Fix `kwarg` example (#294) (Magnus Holm)
213
-
214
- v2.3.1.1 (2016-06-01)
215
- ---------------------
216
-
217
- Bugs fixed:
218
- * ruby{^18}.y: "lambda{|;a|a}": treat shadowarg as local inside block. (Ilya Bylich)
219
- * Builders::Default: "foo&.bar{}": emit csend in block properly. (whitequark)
220
- * runner.rb: re-add --23 (cremno)
221
- * runner.rb: make --24 actually use the 2.4 parser (cremno)
222
-
223
- v2.3.1.0 (2016-04-27)
224
- ---------------------
225
-
226
- Features implemented:
227
- * Parser::Current: update for Ruby 2.3.1. (whitequark)
228
- * Builders::Default: allow masgn in conditional context on >=Ruby 2.4. (whitequark)
229
- * ruby24.y: branch parser. (whitequark)
230
-
231
- Bugs fixed:
232
- * lexer.rl: "def x y; y A::B, ''; end": reject X:: in EXPR_ENDFN (fixes #285). (whitequark)
233
-
234
- v2.3.0.7 (2016-03-25)
235
- ---------------------
236
-
237
- API modifications:
238
- * Source::Diagnostic: handle ranges pointing to newlines (#273). (whitequark)
239
-
240
- Features implemented:
241
- * Parser::Base#tokenize: allow recovery from syntax errors. (whitequark)
242
- * lexer.rl: "a=1; a b: 1": allow label after command clashing with local. (whitequark)
243
- * lexer.rl: "undef %s(x)": emit %s literals in expr_fname in 2.3 mode. (whitequark)
244
-
245
- Bugs fixed:
246
- * Builders::Default: reject non-UTF-8 compatible literals. (whitequark)
247
-
248
- v2.3.0.6 (2016-02-14)
249
- ---------------------
250
-
251
- Bugs fixed:
252
- * lexer.rl: fix EOF location (closes #273). (whitequark)
253
-
254
- v2.3.0.5 (2016-02-12)
255
- ---------------------
256
-
257
- Bugs fixed:
258
- * lexer.rl: "%Q{\あ}": fix encoding of UTF-8 noop escapes. (whitequark)
259
-
260
- v2.3.0.3 (2016-02-06)
261
- ---------------------
262
-
263
- API modifications:
264
- * lexer.rl: "a?=b": lex via tCHARACTER (closes #255). (whitequark)
265
-
266
- v2.3.0.2 (2016-01-24)
267
- ---------------------
268
-
269
- Bugs fixed:
270
- * Add :csend to Parser::Meta::NODE_TYPES (Markus Schirp)
271
- * lexer/dedenter: "\<\<x\n y\\n z\nx": don't dedent after escaped newline. (whitequark)
272
-
273
- v2.3.0.1 (2016-01-14)
274
- ---------------------
275
-
276
- Features implemented:
277
- * ruby23.y: implement optional superclass (cremno)
278
-
279
- v2.3.0.0 (2016-01-14)
280
- ---------------------
281
-
282
- Features implemented:
283
- * parser/current: update for released 2.3. (whitequark)
284
- * parse.y: "\<\<~HEREDOC": implement dedenting heredocs (fixes #228). (whitequark)
285
-
286
- v2.3.0.pre.6 (2015-12-20)
287
- -------------------------
288
-
289
- API modifications:
290
- * parser/current: update 2.2 warning to 2.2.4. (whitequark)
291
- * ruby{22,23}.y: "1 ? p do end : 0". (whitequark)
292
- * lexer.rl: "{%'a':1}": %-string cannot be a label. (whitequark)
293
- * parser/current: update 2.1 warning to 2.1.8. (whitequark)
294
-
295
- Features implemented:
296
- * ruby-parse: add --emit-ruby option. (whitequark)
297
-
298
- Bugs fixed:
299
- * lexer.rl: "f(a ? 'a':1)": disallow quoted label at expr_value. (whitequark)
300
-
301
- v2.3.0.pre.5 (2015-12-16)
302
- -------------------------
303
-
304
- API modifications:
305
- * Source::Diagnostic: output ^^^^^ instead of ^~~~~ (like clang). (whitequark)
306
-
307
- v2.3.0.pre.4 (2015-11-26)
308
- -------------------------
309
-
310
- Bugs fixed:
311
- * ruby23.y: add generated grammar to gemspec. (whitequark)
312
-
313
- v2.3.0.pre.3 (2015-11-25)
314
- -------------------------
315
-
316
- API modifications:
317
- * builders/default: introduce a (lambda) node (fixes #212). (whitequark)
318
- * lexer.rl: do not override argument variable. (Keiji, Yoshimi)
319
- * lexer.rl: rename variable names from lit to current_literal. (Keiji, Yoshimi)
320
- * lexer.rl: use Regexp to match string. (Keiji, Yoshimi)
321
- * lib/parser/source/buffer: reduce respond_to?(:bsearch) (Keiji, Yoshimi)
322
- * lexer.rl: reduce String literal allocations (Keiji, Yoshimi)
323
- * lexer.rl: reduce respond_to?(:encode) method call on #advance (Keiji, Yoshimi)
324
- * lexer.rl: reduce Stirng.length method call on #advance (Keiji, Yoshimi)
325
- * lexer.rl: reduce .class method call on #advance (Keiji, Yoshimi)
326
-
327
- Features implemented:
328
- * lexer.rl, ruby23.y: "a&.b": implement "safe navigation operator" (fixes #209). (whitequark)
329
- * ruby23.y: fork grammar. (whitequark)
330
-
331
- Bugs fixed:
332
- * lexer.rl: never let EOF token location point past EOF. (whitequark)
333
-
334
- v2.2.3.0 (2015-10-08)
335
- ---------------------
336
-
337
- Bugs fixed:
338
- * lexer.rl: "-> a: {}": state after -> is ENDFN, not END (fixes #203). (whitequark)
339
- * ruby{21,22}.y: "p -> { :hello }, a: 1 do end": lexpop cmdarg. (whitequark)
340
-
341
- v2.2.2.6 (2015-06-30)
342
- ---------------------
343
-
344
- API modifications:
345
- * parser/current: link to README from syntax deviation warning. (whitequark)
346
-
347
- v2.3.0.pre.2 (2015-06-15)
348
- -------------------------
349
-
350
- Bugs fixed:
351
- * {macruby,rubymotion}.rb: add to gemspec. (whitequark)
352
-
353
- v2.3.0.pre.1 (2015-06-13)
354
- -------------------------
355
-
356
- API modifications:
357
- * ruby20.y: revert 7f7f2a45. (whitequark)
358
-
359
- Features implemented:
360
- * Add RubyMotion support. (whitequark)
361
- * Add MacRuby support. (whitequark)
362
-
363
- Bugs fixed:
364
- * lexer.rl: "[/()\\1/, ?#]": fixes #198. (whitequark)
365
-
366
- v2.2.2.5 (2015-05-25)
367
- ---------------------
368
-
369
- API modifications:
370
- * Source::Comment::Associator: rework entirely; fixes #194 (Oleg Zubchenko)
371
-
372
- Features implemented:
373
- * Source::Map: add last_line, last_column delegation (Oleg Zubchenko)
374
- * Source::Range: add last_line, last_column methods (Oleg Zubchenko)
375
-
376
- Bugs fixed:
377
- * AST::Processor: add missing on_block_pass (fixes #196) (whitequark)
378
-
379
- v2.2.2.3 (2015-05-17)
380
- ---------------------
381
-
382
- API modifications:
383
- * lexer.rl: "a?? 1 : 0": squelch "invalid character syntax" warning. (whitequark)
384
- * parser/current: bump warnings to 2.0.1, 2.1.7, 2.2.3. (whitequark)
385
-
386
- Bugs fixed:
387
- * Source::Map: do not include :node in to_hash. (whitequark)
388
- * ruby{20,21,22}.y: "p ->() do a() do end end": save cmdarg. (whitequark)
389
-
390
- v2.2.2.2 (2015-04-28)
391
- ---------------------
392
-
393
- Bugs fixed:
394
- * lexer.rl: "%r.\..", "%r'\''": leave regexp metacharacters escaped (fixes #192). (whitequark)
395
-
396
- v2.2.2.1 (2015-04-18)
397
- ---------------------
398
-
399
- Bugs fixed:
400
- * builders/default: don't falsely diagnose multiline regexps (fixes #190). (whitequark)
401
-
402
- v2.2.0.4 (2015-04-15)
403
- ---------------------
404
-
405
- Features implemented:
406
- * Add Parser::Source::Map#node. (whitequark)
407
- * Add Parser::Source::Comment.associate_locations. (kubicle)
408
-
409
- v2.2.0.1 (2014-12-27)
410
- ---------------------
411
-
412
- Bugs fixed:
413
- * lexer.rl, lexer/literal: "{'a'::": don't parse as quoted label. (Peter Zotov)
414
- * Update syntax deviation warning to reflect 2.2 release. (Peter Zotov)
415
-
416
- v2.2.0 (2014-12-25)
417
- -------------------
418
-
419
- Bugs fixed:
420
- * lexer.rl: "{'x':1,'y':{}}": fix lex_state after tLABEL_END. (Peter Zotov)
421
-
422
- v2.2.0.pre.8 (2014-11-19)
423
- -------------------------
424
-
425
- API modifications:
426
- * parser/current: update 2.1 to 2.1.5 (fixes #174). (Peter Zotov)
427
-
428
- v2.2.0.pre.7 (2014-11-03)
429
- -------------------------
430
-
431
- Bugs fixed:
432
- * parser/meta: add missing nodes (fixes #171). (Peter Zotov)
433
-
434
- v2.2.0.pre.6 (2014-10-28)
435
- -------------------------
436
-
437
- API modifications:
438
- * parser/current: latest stable 2.1.x is 2.1.4, update warning. (hirocaster)
439
-
440
- v2.2.0.pre.5 (2014-10-03)
441
- -------------------------
442
-
443
- Features implemented:
444
- * parser/current: add syntax deviation warning for 2.1.2. (Peter Zotov)
445
- * lexer.rl, ruby22.y: "{'x':1}": add tLABEL_END. (Peter Zotov)
446
-
447
- Bugs fixed:
448
- * lexer.rl, ruby{21,22}.y: "def a b:\nreturn": fix #164. (Peter Zotov)
449
- * Fix for `ruby-rewrite` not rewriting files if any rewriter was loaded, due to it getting confused about the filename. (Jon Frisby)
450
-
451
- v2.2.0.pre.4 (2014-08-09)
452
- -------------------------
453
-
454
- Bugs fixed:
455
- * builders/default: "not(x)": fix source map (fixes #158). (Peter Zotov)
456
-
457
- v2.2.0.pre.3 (2014-07-02)
458
- -------------------------
459
-
460
- Features implemented:
461
- * Raise EncodingError when source includes invalid byte sequence (Yuji Nakayama)
462
-
463
- Bugs fixed:
464
- * ruby{19,20,21}.y: "x def y; z do end end": save cmdarg stack to isolate command argument state from outer scope. (Peter Zotov)
465
- * ruby{19,20,21}.y: "tap (proc do end)": allow parenthesed do-block in cmdarg. (Peter Zotov)
466
-
467
- v2.2.0.pre.2 (2014-06-14)
468
- -------------------------
469
-
470
- Bugs fixed:
471
- * ruby22.rb: include in gemspec. (Peter Zotov)
472
-
473
- v2.2.0.pre.1 (2014-06-12)
474
- -------------------------
475
-
476
- Features implemented:
477
- * Add Source::Rewriter#transaction for atomic rewrite actions (Yuji Nakayama)
478
- * Raise Parser::ClobberingError for clobbering rewrite error (Yuji Nakayama)
479
-
480
- Bugs fixed:
481
- * parser/current: fix the fallback case (refs #146). (Peter Zotov)
482
- * ruby22.y: "tap (proc do end)": allow parenthesed do-block in cmdarg. (Peter Zotov)
483
-
484
- v2.1.9 (2014-04-21)
485
- -------------------
486
-
487
- API modifications:
488
- * Extend ast dependency to >= 1.1 \< 3.0. (Peter Zotov)
489
- * parser/current: fallback to latest released Ruby instead of raising (fixes #140). (Peter Zotov)
490
-
491
- Features implemented:
492
- * ruby-rewrite: add a --modify switch for rewriters that modify AST (fixes #143). (Peter Zotov)
493
-
494
- Bugs fixed:
495
- * lexer.rl: don't fail to parse string literals in huge files (fixes #142). (Peter Zotov)
496
-
497
- v2.1.7 (2014-03-05)
498
- -------------------
499
-
500
- Bugs fixed:
501
- * lexer.rl: make sure all invalid escapes lead to fatal errors (fixes #136). (Peter Zotov)
502
-
503
- v2.1.6 (2014-03-04)
504
- -------------------
505
-
506
- Features implemented:
507
- * Add the list of all node types within Parser::Meta. (Markus Schirp)
508
-
509
- v2.1.5 (2014-02-24)
510
- -------------------
511
-
512
- Bugs fixed:
513
- * Parser::Base, ruby18.y: don't try to lookup Encoding on 1.8 (fixes #133). (Peter Zotov)
514
-
515
- v2.1.4 (2014-01-11)
516
- -------------------
517
-
518
- Features implemented:
519
- * ruby22.y: "x def y; z do end end": save cmdarg stack to isolate command argument state from outer scope. (Peter Zotov)
520
- * Add Ruby 2.2 syntax. (Peter Zotov)
521
-
522
- Bugs fixed:
523
- * Builders::Default: "super do end": super and zsuper are like send (fixes #131). (Peter Zotov)
524
-
525
- v2.1.3 (2014-01-10)
526
- -------------------
527
-
528
- Bugs fixed:
529
- * lexer.rl: "/\//": don't include escaped delimiter in AST in its escaped form (fixes #125). (Peter Zotov)
530
- * Builders::Default: "return x y do end": correctly build AST for keywords followed by command (closes #129). (Peter Zotov)
531
- * Fix a bug where "ambiguous first argument" diagnostic was not emitted (Yuji Nakayama)
532
- * Source::Comment::Associator: don't die while associating with "__ENCODING__". (Peter Zotov)
533
- * ruby-parse: don't die when invoked with -L -e "__ENCODING__". (Peter Zotov)
534
- * Add missing source map for match-current-line (Yuji Nakayama)
535
-
536
- v2.1.2 (2014-01-05)
537
- -------------------
538
-
539
- Bugs fixed:
540
- * lexer.rl: in "foo!= x", foo is tIDENTIFIER, not tFID (closes #126). (Peter Zotov)
541
-
542
- v2.1.1 (2013-12-25)
543
- -------------------
544
-
545
- API modifications:
546
- * ruby21.y: Ruby 2.1 is released already. (Peter Zotov)
547
-
548
- v2.1.0 (2013-12-25)
549
- -------------------
550
-
551
- API modifications:
552
- * Parser::Diagnostic: expose reason symbolically (closes #115, #116). (Ian MacLeod)
553
- * lexer.rl: coerce literals to UTF-8 in ASCII-encoded files if they contain \uXXXX (Peter Zotov)
554
-
555
- Bugs fixed:
556
- * builders/default: represent heredocs with dedicated map (fixes #100). (Peter Zotov)
557
-
558
- v2.1.0.pre1 (2013-11-12)
559
- ------------------------
560
-
561
- API modifications:
562
- * lexer.rl: correctly handle __END__ with non-whitespace after it (Peter Zotov)
563
- * lexer.rl: handle \r in middle of a line as mere whitespace (Peter Zotov)
564
- * ruby{18,19,20,21}.y, builders/default: precisely point to tUMINUS_NUM. (Peter Zotov)
565
-
566
- Features implemented:
567
- * lexer.rl, ruby21.y, builders/default: rational/complex literals. (Peter Zotov)
568
-
569
- v2.0.0 (2013-10-06)
570
- -------------------
571
-
572
- API modifications:
573
- * Source::Rewriter: raise an exception if updates clobber each other. (Peter Zotov)
574
- * Source::Range#inspect: use full class name. (Peter Zotov)
575
- * lexer.rl: make EOF tokens actually pointing at EOF and zero-length. (Peter Zotov)
576
- * Source::Range#column_range: raise RangeError if range spans >1 line. (Peter Zotov)
577
- * Source::Comment::Associator: fix argument order. (Peter Zotov)
578
-
579
- Features implemented:
580
- * Source::Comment: implement #inspect. (Peter Zotov)
581
- * Backport Array#bsearch from Ruby 2.0. (Peter Zotov)
582
-
583
- v2.0.0.pre8 (2013-09-15)
584
- ------------------------
585
-
586
- API modifications:
587
- * lexer.rl: make lexing faster and improve parsing speed by ~60%. (Peter Zotov)
588
-
589
- v2.0.0.pre7 (2013-09-10)
590
- ------------------------
591
-
592
- Features implemented:
593
- * Parser::Base: add #parse_with_comments, #parse_file_with_comments. (Trent Ogren)
594
- * lexer.rl (Ruby 2.1): "1end": lex non-exponent `e' separate from number. (Peter Zotov)
595
-
596
- Bugs fixed:
597
- * lexer.rl: "->*{}": tLAMBEG at expr_beg (fixes #103). (Peter Zotov)
598
- * Source::Rewriter: apply actions in the insertion order. (Josh Cheek)
599
-
600
- v2.0.0.pre5 (2013-07-31)
601
- ------------------------
602
-
603
- Bugs fixed:
604
- * Remove a forgotten require. (Peter Zotov)
605
-
606
- v2.0.0.pre4 (2013-07-31)
607
- ------------------------
608
-
609
- API modifications:
610
- * source/comment: make #loc/#location return Source::Map for consistency (fixes #96). (Peter Zotov)
611
-
612
- Features implemented:
613
- * source/comment/associator: skip shebang and encoding line by default (fixes #95). (Peter Zotov)
614
-
615
- Bugs fixed:
616
- * ruby{19,20,21}.y, lexer.rl, builders/default: correct begin for ?a (fixes #92). (Peter Zotov)
617
- * ruby{18,19,20,21}.y, builders/default: don't add spurious begin/end for string parts (refs #92). (Peter Zotov)
618
- * Activate `diagnostics.all_errors_are_fatal` on non-MRI Rubies as a workaround (closes #93). (Peter Zotov)
619
-
620
- v2.0.0.pre3 (2013-07-26)
621
- ------------------------
622
-
623
- API modifications:
624
- * lexer.rl: add simple explicit output encoding for strings. (Peter Zotov)
625
-
626
- Features implemented:
627
- * Source::Buffer: support for -(dos|unix|mac) and utf8-mac encodings. (Peter Zotov)
628
- * Source::Range#resize. (Peter Zotov)
629
- * Significantly improve speed for large (>100k) and very large (>1M) files. (Peter Zotov)
630
-
631
- Bugs fixed:
632
- * ruby21.y: fix typos. (Peter Zotov)
633
- * builders/default: respect regexp encoding. (Peter Zotov)
634
- * lexer.rl: literal EOF (\0, \x04, \x1a) inside literals and comments. (Peter Zotov)
635
- * lexer.rl: "meth (lambda do end)" (1.8), "f x: -> do meth do end end": expr_cmdarg. (Peter Zotov)
636
- * lexer.rl: "\<\<E\nE\r\r\n": extraneous CRs are ignored after heredoc delimiter. (Peter Zotov)
637
- * lexer.rl: "%\nfoo\n": \n can be used as %-literal delimiter. (Peter Zotov)
638
- * source/buffer, lexer.rl: convert CRLF to LF prior to lexing. (Peter Zotov)
639
- * lexer.rl: "\<\<w; "\nfoo\nw\n"": interleaved heredoc and non-heredoc literals. (Peter Zotov)
640
- * builders/default: 1.8 did not descend into &&/|| in conditional context. (Peter Zotov)
641
- * lexer.rl: "1+a:a": respect context sensitivity in 1.8 label fallback. (Peter Zotov)
642
- * lexer.rl: ruby 1.8 is context-sensitive wrt/ locals as well. (Peter Zotov)
643
- * lexer.rl: "eof??a": expr_arg doesn't need space before character literal. (Peter Zotov)
644
- * lexer.rl: interleaved heredoc and interpolated double-quoted string. (Peter Zotov)
645
- * lexer.rl: "#{f:a}": interpolation starts expr_value, not expr_beg. (Peter Zotov)
646
- * lexer.rl: "\cM" is "\r", not an error. (Peter Zotov)
647
- * ruby{20,21}.y: constant op-assignment inside a def is not an error. (Peter Zotov)
648
- * lexer.rl: "when Date:" fix label fallback for 1.8 mode. (Peter Zotov)
649
- * ruby{19,20,21}.y: "->(scope){}; scope :foo": lambda identifier leakage. (Peter Zotov)
650
- * lexer.rl: "eh ?\r\n": don't eat tEH if followed by CRLF. (Peter Zotov)
651
- * lexer.rl: "f \<\<-TABLE\ndo |a,b|\nTABLE\nend": leave FSM after lexing heredoc. (Peter Zotov)
652
- * lexer.rl: "foo %\n bar": don't % at expr_arg as tSTRING_BEG. (Peter Zotov)
653
- * lexer.rl, lexer/literal: use lexer encoding for literal buffer. (Peter Zotov)
654
- * lexer.rl: "\u{9}": one-digit braced unicode escapes. (Peter Zotov)
655
- * Source::Buffer: don't chew \r from source lines. (Peter Zotov)
656
- * builders/default: don't die in eh_keyword_map if else branch is empty. (Peter Zotov)
657
- * lexer.rl: "0777_333": octal literals with internal underscores. (Peter Zotov)
658
- * lexer.rl: "let [] {}": goto tLBRACE_ARG after any closing braces. (Peter Zotov)
659
- * lexer.rl: "while not (1) do end": emit proper kDO* when in cond/cmdarg state. (Peter Zotov)
660
- * lexer.rl: "rescue=>": correctly handle rescue+assoc at expr_beg. (Peter Zotov)
661
- * lexer.rl: "puts 123do end": only trailing `_' and `e' in number are errors. (Peter Zotov)
662
- * lexer.rl: "begin; rescue rescue1; end": accept barewords at expr_mid. (Peter Zotov)
663
- * lexer.rl: "f.x!if 1": correct modifier handling in expr_arg. (Peter Zotov)
664
- * lexer.rl: "=begin\n#=end\n=end": only recognize =end at bol. (Peter Zotov)
665
- * builders/default: don't check for duplicate arguments in 1.8 mode. (Peter Zotov)
666
- * Don't attempt to parse magic encoding comment in 1.8 mode. (Peter Zotov)
667
- * lexer.rl: "\777": octal literals overflow. (Peter Zotov)
668
- * lexer.rl: "foo;\n__END__", "\na:b": whitespace in expr_value. (Peter Zotov)
669
- * lexer.rl: "\xE2\x80\x99": concatenation of byte escape sequences. (Peter Zotov)
670
- * lexer.rl: "E10", "E4U": don't conflate floats and identifiers. (Peter Zotov)
671
- * lexer.rl: "foo.bar= {1=>2}": return fid, = as separate tokens in expr_dot. (Peter Zotov)
672
- * lexer.rl: "def defined?": properly return defined? in expr_fname. (Peter Zotov)
673
- * lexer.rl: "Rainbows! do end", "foo.S?": allow bareword fid in expr_beg/dot. (Peter Zotov)
674
-
675
- v2.0.0.pre2 (2013-07-11)
676
- ------------------------
677
-
678
- Features implemented:
679
- * Allow to differentiate between __FILE__/__LINE__ and literals (closes #89). (Peter Zotov)
680
- * Add attribute `diagnostic' to Parser::SyntaxError (closes #88). (Peter Zotov)
681
-
682
- Bugs fixed:
683
- * Don't treat byte order mark as an identifier (closes #91). (Peter Zotov)
684
-
685
- v2.0.0.beta10 (2013-07-02)
686
- --------------------------
687
-
688
- Bugs fixed:
689
- * ruby-parse, ruby-rewrite: fix require of removed compatibility shim. (Peter Zotov)
690
- * lexer.rl: "def !@; end" unary bang. (Peter Zotov)
691
-
692
- v2.0.0.beta9 (2013-06-28)
693
- -------------------------
694
-
695
- API modifications:
696
- * ruby{18,19,20,21}.y: removed obsolete warnings and linting. (Peter Zotov)
697
-
698
- Features implemented:
699
- * builders/default: add keyword source range for BEGIN/END (fixes #85). (Peter Zotov)
700
-
701
- Bugs fixed:
702
- * lexer.rl: "t=1;(a)?t:T" context sensitivity in expr_value (fixes #87). (Peter Zotov)
703
- * lexer.rl: keywords as labels, e.g. "unless:" (fixes #83, #84). (Peter Zotov)
704
- * lexer.rl: rectify usage of c_space/c_space_nl (fixes #81). (Peter Zotov)
705
- * ruby{18,19,20,21}.y: fix warnings for class/module in method body. (Peter Zotov)
706
- * lexer.rl: fix warning for ?\s. (Peter Zotov)
707
- * lexer.rl: expr_fname emits expr_beg-like keywords (fixes #82). (Peter Zotov)
708
- * lexer.rl: get rid of harmful nondeterminism in w_space (fixes #80). (Peter Zotov)
709
- * lexer/explanation: 1.8, 1.9 compatibility (fixes #76). (Peter Zotov)
710
-
711
- v2.0.0.beta8 (2013-06-24)
712
- -------------------------
713
-
714
- Bugs fixed:
715
- * ast/processor: add missing node handlers (Yuji Nakayama)
716
- * ast/processor: rename some obsolete node handlers (Yuji Nakayama)
717
-
718
- v2.0.0.beta7 (2013-06-22)
719
- -------------------------
720
-
721
- API modifications:
722
- * Implement a much more sane encoding model (closes #60). (Peter Zotov)
723
-
724
- Features implemented:
725
- * builders/default: (while-post) and (until-post); (kwbegin) (fixes #70). (Peter Zotov)
726
-
727
- Bugs fixed:
728
- * builders/default: don't swallow (begin) in "if (foo); end" (fixes #75). (Peter Zotov)
729
-
730
- v2.0.0.beta6 (2013-06-17)
731
- -------------------------
732
-
733
- API modifications:
734
- * Get rid of "synthesized (nil)". If it's not in source, it's not in AST (fixes #71). (Peter Zotov)
735
- * lexer.rl, ruby{18,19,20,21}.y: source maps for interpolation (fixes #27). (Peter Zotov)
736
-
737
- Features implemented:
738
- * ruby{18,19,20,21}.y, builders/default: lvar-injecting match (closes #69). (Peter Zotov)
739
- * builders/default: implicit matches (refs #69). (Peter Zotov)
740
- * builders/default: flip-flops (refs #69). (Peter Zotov)
741
-
742
- Bugs fixed:
743
- * lexer.rl: fix an off-by-1 error in heredoc parsing. (Peter Zotov)
744
- * lexer.rl: don't fail on "alias $a $b\n# comment\nalias $c $d". (Peter Zotov)
745
- * builders/default: fix treatment of masgn in &&/|| (refs #69). (Peter Zotov)
746
- * ruby-parse: make -L command line option work again. (Peter Zotov)
747
- * ruby{18,19,20,21}.y: begin source map for "if foo\nthen bar end" (fixes #68). (Peter Zotov)
748
- * Source::Comment::Associator: gracefully terminate when out of comments (fixes #67). (Peter Zotov)
749
-
750
- v2.0.0.beta5 (2013-06-08)
751
- -------------------------
752
-
753
- Bugs fixed:
754
- * Source::Buffer: better magic encoding comment recognition (fixes #65). (Peter Zotov)
755
- * lexer.rl: "{success?: true}" (fixes #66). (Peter Zotov)
756
- * Source::Buffer: if in doubt, treat data as UTF-8 (closes #60). (Peter Zotov)
757
-
758
- v2.0.0.beta4 (2013-06-05)
759
- -------------------------
760
-
761
- Bugs fixed:
762
- * lexer.rl: fix heredoc parsing with CRLF line endings (closes #61). (Peter Zotov)
763
- * lexer.rl: fix premature ending of heredoc "\<\<D\nABCDEF\nD" (fixes #59). (Peter Zotov)
764
-
765
- v2.0.0.beta3 (2013-05-29)
766
- -------------------------
767
-
768
- Bugs fixed:
769
- * AST::Processor: traverse "A, B = foo" (fixes #55). (Peter Zotov)
770
- * lexer.rl: correctly handle CRLF line endings (fixes #56). (Peter Zotov)
771
- * Fix traversing of "case; when a?; when b?; end" by AST::Processor. (Peter Zotov)
772
- * Correctly lex "foo a, b # comment\nbar" (fixes #54). (Peter Zotov)
773
-
774
- v2.0.0.beta2 (2013-05-27)
775
- -------------------------
776
-
777
- Bugs fixed:
778
- * Actually return comments from Parser::Base#tokenize instead of nil. (Peter Zotov)
779
-
780
- v2.0.0.beta1 (2013-05-25)
781
- -------------------------
782
-
783
- API modifications:
784
- * Completely rewrite whitespace handling in lexer (fixes #36). (Peter Zotov)
785
- * Rename Parser::AST::Node#source_map to #location, #src to #loc (closes #40). (Peter Zotov)
786
- * Rename Parser::Source::Range#to_source to #source (refs #40). (Peter Zotov)
787
- * Rename (cdecl) node to (casgn), remove (cvdecl) nodes (fixes #26). (Peter Zotov)
788
-
789
- Features implemented:
790
- * Add Source::Comment.associate for mapping comments back to nodes (fixes #31). (Peter Zotov)
791
- * Return AST and comments from Parser::Base#parse_with_comments. (Peter Zotov)
792
- * Return comments from Parser::Base#tokenize (fixes #46). (Peter Zotov)
793
- * Add tokenizer, Parser::Base#tokenize (refs #46). (Peter Zotov)
794
- * lexer.rl: better location reporting for invalid unicode codepoints (fixes #38). (Peter Zotov)
795
- * lexer.rl: better location reporting for unterminated =begin (fixes #37). (Peter Zotov)
796
- * Better location reporting for hashes with labels. (Peter Zotov)
797
- * Add `dot' source map to (send) nodes (fixes #34). (Peter Zotov)
798
- * Significantly improve performance of Source::Buffer (fixes #28). (Peter Zotov)
799
-
800
- Bugs fixed:
801
- * lexer.rl: fix lexing label at line_begin "foo:bar" (fixes #48). (Peter Zotov)
802
- * lexer.rl: "Option /^I/" is a method call (fixes #32). (Peter Zotov)
803
- * Don't allow destructive mutation of line cache in Source::Buffer. (Peter Zotov)
804
- * Fix quantifier in magic encoding parser (refs #33). (Peter Zotov)
805
- * Better handling of magic encoding comment edge cases (fixes #33). (Peter Zotov)
806
-
807
- v1.3.2 (2013-05-13)
808
- -------------------
809
-
810
- Features implemented:
811
- * lexer.rl: disallow "$-" (dollar, dash, no character) special. (Peter Zotov)
812
-
813
- Bugs fixed:
814
- * Source::Range: fix #to_source for multiline ranges. (Peter Zotov)
815
- * builders/default: source map for class/module name (fixes #24). (Peter Zotov)
816
-
817
- v1.3.1 (2013-05-09)
818
- -------------------
819
-
820
- Bugs fixed:
821
- * ruby{19,20,21}.y: "def foo\n=begin\n=end\nend" (fixes #22). (Peter Zotov)
822
- * lexer.rl: "rescue::Exception" (fixes #23). (Peter Zotov)
823
-
824
- v1.3.0 (2013-04-26)
825
- -------------------
826
-
827
- Bugs fixed:
828
- * lexer.rl: "alias foo bar \n alias bar baz". (Peter Zotov)
829
-
830
- v1.2.0 (2013-04-25)
831
- -------------------
832
-
833
- Bugs fixed:
834
- * lexer.rl: lex "def String.foo; end" correctly (fixes #16). (Peter Zotov)
835
- * lexer.rl: reject "1end", "1.1end". (Peter Zotov)
836
-
837
- v1.1.0 (2013-04-18)
838
- -------------------
839
-
840
- API modifications:
841
- * ruby19.y, ruby20.y, ruby21.y: check for Encoding support (fixes #9). (Peter Zotov)
842
-
843
- Features implemented:
844
- * builders/default: ignore duplicate _ args (>=1.9), _.* args (>1.9) (fixes #5). (Peter Zotov)
845
- * builders/default: detect duplicate argument names (refs #5). (Peter Zotov)
846
- * lexer.rl: "def foo bar: 1; end" (for ruby 2.1) (fixes #15). (Peter Zotov)
847
- * ruby21.y: required keyword arguments. (Peter Zotov)
848
-
849
- Bugs fixed:
850
- * ruby20.y, ruby21.y: "foo::A += 1" and friends (scoped constant op-asgn). (Peter Zotov)
851
-
852
- v1.0.1 (2013-04-18)
853
- -------------------
854
-
855
- Bugs fixed:
856
- * builders/default: %Q{#{1}} and friends (fixes #14). (Peter Zotov)
857
-
858
- v1.0.0 (2013-04-17)
859
- -------------------
860
-
861
- Features implemented:
862
- * ruby20.y: "meth 1 do end.fun(bar) {}" and friends. (Peter Zotov)
863
- * ruby20.y: keyword arguments. (Peter Zotov)
864
- * ruby20.y: { **kwsplat }. (Peter Zotov)
865
-
866
- v0.9.2 (2013-04-16)
867
- -------------------
868
-
869
- Features implemented:
870
- * lexer.rl: "-> (a) {}". (Peter Zotov)
871
- * builders/default: treat &&/|| lhs/rhs as conditional context. (Peter Zotov)
872
- * ruby20.y: "class Foo \< a:b; end". (Peter Zotov)
873
- * lexer.rl: "class \<\< a:b". (Peter Zotov)
874
- * ruby19.y, ruby20.y: "f { || a:b }". (Peter Zotov)
875
- * ruby19.y, ruby20.y: "def foo() a:b end", "def foo\n a:b end". (Peter Zotov)
876
- * lexer.rl: %i/%I. (Peter Zotov)
877
- * lexer.rl: warn at "foo **bar". (Peter Zotov)
878
- * lexer.rl: ** at expr_beg is tDSTAR. (Peter Zotov)
879
- * ruby20.y: "f {|;\nvar\n|}". (Peter Zotov)
880
- * ruby20.y: "p () {}". (Peter Zotov)
881
- * ruby20.y: "p begin 1.times do 1 end end". (Peter Zotov)
882
- * ruby20.y: better error message for BEGIN{} in a method body. (Peter Zotov)
883
-
884
- Bugs fixed:
885
- * lexer.rl, ruby18.y, ruby19.y, ruby20.y: "%W[#{a}#@b foo #{c}]". (Peter Zotov)
886
- * lexer.rl: parse "foo=1; foo / bar #/" as method call on 1.8, division on 1.9. (Peter Zotov)
887
- * ruby18.y, ruby19.y: BEGIN{} does not introduce a scope. (Peter Zotov)
888
- * lexer.rl: improve whitespace handling. (Peter Zotov)
889
-
890
- v0.9.0 (2013-04-15)
891
- -------------------
892
-
893
- API modifications:
894
- * runtime compatibility with 1.8.7. (Peter Zotov)
895
-
896
- Features implemented:
897
- * builders/default: check for multiple assignment in conditions (fixes #4). (Peter Zotov)
898
- * builders/default: check if actual block and blockarg are passed (fixes #6). (Peter Zotov)
899
- * ruby19.y: "foo::A += m foo". (Peter Zotov)
900
- * ruby18.y, ruby19.y: "rescue without else is useless" warning. (Peter Zotov)
901
- * ruby19.y: 99.16% coverage, 100% sans error recovery. (Peter Zotov)
902
- * ruby19.y: mlhs arguments "def foo((a, *, p)) end". (Peter Zotov)
903
- * ruby19.y: "fun (1) {}" and friends. (Peter Zotov)
904
- * ruby19.y: mlhs post variables "a, *b, c = ...". (Peter Zotov)
905
- * builders/default: @@a |= 1; def f; @@a |= 1; end. (Peter Zotov)
906
- * ruby18.y: fun (&foo). (Peter Zotov)
907
- * ruby18.y: block formal arguments. 99.33% coverage. (Peter Zotov)
908
- * ruby18.y: fun(meth 1 do end); fun(1, meth 1 do end). (Peter Zotov)
909
- * ruby18.y: "meth 1 do end.fun(bar)" and friends. (Peter Zotov)
910
- * ruby18.y: foo () {}; a.foo () {}; a::foo () {}. (Peter Zotov)
911
- * ruby18.y: various call argument combinations. (Peter Zotov)
912
- * ruby18.y: foo (1, 2); foo (). (Peter Zotov)
913
- * ruby18.y: foo (1).to_i. (Peter Zotov)
914
- * ruby18.y: fun{}; fun(){}; fun(1){}; fun do end. (Peter Zotov)
915
- * ruby18.y: foo.fun bar. (Peter Zotov)
916
- * lexer.rl, ruby18.y: add support for cond/cmdarg stack states. (Peter Zotov)
917
- * ruby18.y: rescue. (Peter Zotov)
918
- * ruby18.y: begin end while|until (tests only). (Peter Zotov)
919
- * ruby18.y: case. (Peter Zotov)
920
- * ruby18.y: foo[m bar]. (Peter Zotov)
921
- * ruby18.y: for..in. (Peter Zotov)
922
-
923
- Bugs fixed:
924
- * lexer.rl: handle : at expr_beg as a symbol, at expr_end as tCOLON. (Peter Zotov)
925
- * lexer.rl: handle "rescue #foo\nbar". (Peter Zotov)
926
- * lexer.rl: handle "foo.#bar\nbaz". (Peter Zotov)
927
- * lexer.rl: fix location info for symbols. (Peter Zotov)
928
- * lexer.rl: handle \<backslash>\<nl> at expr_beg. (Peter Zotov)
929
- * lexer.rl: emit tCONSTANT/tIDENTIFIER/tFID in expr_dot. (Peter Zotov)
930
- * lexer.rl: correctly disambiguate "x ::Foo" as tIDENT, tCOLON3, ... (Peter Zotov)
931
- * lexer.rl: correctly disambiguate ident!= as tIDENTIFIER, tNEQ. (Peter Zotov)
932
- * lexer.rl: correctly report the %r%% tREGEXP_BEG value as %r%. (Peter Zotov)
933
- * ruby19.y: emit correct error on "nil = 1" and friends. (Peter Zotov)
934
- * ruby19.y: 1.9 permits empty symbol literals. (Peter Zotov)
935
- * ruby18.y: foo(&bar). (Peter Zotov)
936
- * lexer.rl: don't lookahead two tokens on "func %{str} do". (Peter Zotov)
937
- * lexer.rl: fix lexing of non-interp heredoc with trailing backslash. (Peter Zotov)
938
- * lexer.rl: fix erroneous number and =begin lookahead in expr_beg. (Peter Zotov)
939
- * lexer.rl: fix stack corruption. (Peter Zotov)
940
- * lexer.rl: /= at expr_beg. (Peter Zotov)
941
- * lexer.rl: class\<\<self. (Peter Zotov)
942
- * fix lexing comments at expr_beg "{#1\n}". (Peter Zotov)
943
-