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