Skip to content

Commit

Permalink
+ ruby32.y: branch parser (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
iliabylich authored Jan 3, 2022
1 parent 3e421d6 commit 8935d6d
Show file tree
Hide file tree
Showing 8 changed files with 3,244 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ lib/parser/ruby27.rb
lib/parser/ruby28.rb
lib/parser/ruby30.rb
lib/parser/ruby31.rb
lib/parser/ruby32.rb
lib/parser/macruby.rb
lib/parser/rubymotion.rb
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ GENERATED_FILES = %w(lib/parser/lexer.rb
lib/parser/ruby27.rb
lib/parser/ruby30.rb
lib/parser/ruby31.rb
lib/parser/ruby32.rb
lib/parser/macruby.rb
lib/parser/rubymotion.rb)

Expand Down
1 change: 1 addition & 0 deletions lib/parser/all.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
require 'parser/ruby27'
require 'parser/ruby30'
require 'parser/ruby31'
require 'parser/ruby32'
9 changes: 9 additions & 0 deletions lib/parser/current.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ def warn_syntax_deviation(feature, version)
require 'parser/ruby31'
CurrentRuby = Ruby31

when /^3\.2\./
current_version = '3.2.0-dev'
if RUBY_VERSION != current_version
warn_syntax_deviation 'parser/ruby32', current_version
end

require 'parser/ruby32'
CurrentRuby = Ruby32

else # :nocov:
# Keep this in sync with released Ruby.
warn_syntax_deviation 'parser/ruby31', '3.1.x'
Expand Down
Loading

0 comments on commit 8935d6d

Please sign in to comment.