parser 2.7.1.4 → 2.7.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +22 -1
  4. data/Rakefile +1 -1
  5. data/doc/AST_FORMAT.md +6 -5
  6. data/lib/parser.rb +1 -1
  7. data/lib/parser/all.rb +1 -1
  8. data/lib/parser/ast/processor.rb +0 -7
  9. data/lib/parser/base.rb +6 -5
  10. data/lib/parser/builders/default.rb +55 -19
  11. data/lib/parser/current.rb +5 -5
  12. data/lib/parser/lexer.rb +23770 -0
  13. data/lib/parser/lexer.rl +1 -1
  14. data/lib/parser/macruby.rb +6149 -0
  15. data/lib/parser/macruby.y +1 -1
  16. data/lib/parser/max_numparam_stack.rb +1 -1
  17. data/lib/parser/messages.rb +2 -0
  18. data/lib/parser/meta.rb +3 -3
  19. data/lib/parser/ruby18.rb +5663 -0
  20. data/lib/parser/ruby18.y +1 -1
  21. data/lib/parser/ruby19.rb +6092 -0
  22. data/lib/parser/ruby19.y +1 -1
  23. data/lib/parser/ruby20.rb +6527 -0
  24. data/lib/parser/ruby20.y +1 -1
  25. data/lib/parser/ruby21.rb +6578 -0
  26. data/lib/parser/ruby21.y +1 -1
  27. data/lib/parser/ruby22.rb +6613 -0
  28. data/lib/parser/ruby22.y +1 -1
  29. data/lib/parser/ruby23.rb +6624 -0
  30. data/lib/parser/ruby23.y +1 -1
  31. data/lib/parser/ruby24.rb +6694 -0
  32. data/lib/parser/ruby24.y +1 -1
  33. data/lib/parser/ruby25.rb +6662 -0
  34. data/lib/parser/ruby25.y +1 -1
  35. data/lib/parser/ruby26.rb +6676 -0
  36. data/lib/parser/ruby26.y +1 -1
  37. data/lib/parser/ruby27.rb +7803 -0
  38. data/lib/parser/ruby27.y +1 -2
  39. data/lib/parser/ruby30.rb +8052 -0
  40. data/lib/parser/{ruby28.y → ruby30.y} +9 -4
  41. data/lib/parser/rubymotion.rb +6086 -0
  42. data/lib/parser/rubymotion.y +1 -1
  43. data/lib/parser/runner.rb +3 -3
  44. data/lib/parser/source/comment.rb +1 -1
  45. data/lib/parser/source/comment/associator.rb +1 -1
  46. data/lib/parser/source/map/{endless_definition.rb → method_definition.rb} +5 -3
  47. data/lib/parser/source/range.rb +2 -2
  48. data/lib/parser/version.rb +1 -1
  49. data/parser.gemspec +4 -1
  50. data/test/helper.rb +1 -1
  51. data/test/parse_helper.rb +26 -21
  52. data/test/test_current.rb +2 -2
  53. data/test/test_lexer.rb +1 -1
  54. data/test/test_parse_helper.rb +12 -9
  55. data/test/test_parser.rb +253 -47
  56. metadata +8 -9
  57. data/.gitignore +0 -34
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.7.1.4
4
+ version: 2.7.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - whitequark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-19 00:00:00.000000000 Z
11
+ date: 2020-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ast
@@ -165,7 +165,6 @@ executables:
165
165
  extensions: []
166
166
  extra_rdoc_files: []
167
167
  files:
168
- - ".gitignore"
169
168
  - ".travis.yml"
170
169
  - ".yardopts"
171
170
  - CHANGELOG.md
@@ -229,8 +228,8 @@ files:
229
228
  - lib/parser/ruby26.y
230
229
  - lib/parser/ruby27.rb
231
230
  - lib/parser/ruby27.y
232
- - lib/parser/ruby28.rb
233
- - lib/parser/ruby28.y
231
+ - lib/parser/ruby30.rb
232
+ - lib/parser/ruby30.y
234
233
  - lib/parser/rubymotion.rb
235
234
  - lib/parser/rubymotion.y
236
235
  - lib/parser/runner.rb
@@ -244,11 +243,11 @@ files:
244
243
  - lib/parser/source/map/condition.rb
245
244
  - lib/parser/source/map/constant.rb
246
245
  - lib/parser/source/map/definition.rb
247
- - lib/parser/source/map/endless_definition.rb
248
246
  - lib/parser/source/map/for.rb
249
247
  - lib/parser/source/map/heredoc.rb
250
248
  - lib/parser/source/map/index.rb
251
249
  - lib/parser/source/map/keyword.rb
250
+ - lib/parser/source/map/method_definition.rb
252
251
  - lib/parser/source/map/objc_kwarg.rb
253
252
  - lib/parser/source/map/operator.rb
254
253
  - lib/parser/source/map/rescue_body.rb
@@ -302,9 +301,9 @@ licenses:
302
301
  - MIT
303
302
  metadata:
304
303
  bug_tracker_uri: https://github.com/whitequark/parser/issues
305
- changelog_uri: https://github.com/whitequark/parser/blob/v2.7.1.4/CHANGELOG.md
306
- documentation_uri: https://www.rubydoc.info/gems/parser/2.7.1.4
307
- source_code_uri: https://github.com/whitequark/parser/tree/v2.7.1.4
304
+ changelog_uri: https://github.com/whitequark/parser/blob/v2.7.1.5/CHANGELOG.md
305
+ documentation_uri: https://www.rubydoc.info/gems/parser/2.7.1.5
306
+ source_code_uri: https://github.com/whitequark/parser/tree/v2.7.1.5
308
307
  post_install_message:
309
308
  rdoc_options: []
310
309
  require_paths:
data/.gitignore DELETED
@@ -1,34 +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/ruby28.rb
33
- lib/parser/macruby.rb
34
- lib/parser/rubymotion.rb