ruby-changes:60921
From: Nobuyoshi <ko1@a...>
Date: Mon, 27 Apr 2020 15:32:37 +0900 (JST)
Subject: [ruby-changes:60921] aca935a670 (master): Fixed typos in racc
https://git.ruby-lang.org/ruby.git/commit/?id=aca935a670 From aca935a67042dd7b82e34844ae6139cedd66339d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 27 Apr 2020 15:28:06 +0900 Subject: Fixed typos in racc diff --git a/lib/racc/parser-text.rb b/lib/racc/parser-text.rb index 8dadead..c40736b 100644 --- a/lib/racc/parser-text.rb +++ b/lib/racc/parser-text.rb @@ -181,8 +181,8 @@ end https://github.com/ruby/ruby/blob/trunk/lib/racc/parser-text.rb#L181 # Your own parser is completely yours. module Racc - unless defined?(Racc_No_Extentions) - Racc_No_Extentions = false # :nodoc: + unless defined?(Racc_No_Extensions) + Racc_No_Extensions = false # :nodoc: end class Parser @@ -202,7 +202,7 @@ module Racc https://github.com/ruby/ruby/blob/trunk/lib/racc/parser-text.rb#L202 unless new.respond_to?(:_racc_do_parse_c, true) raise LoadError, 'old cparse.so' end - if Racc_No_Extentions + if Racc_No_Extensions raise LoadError, 'selecting ruby version of racc runtime core' end diff --git a/lib/racc/parser.rb b/lib/racc/parser.rb index 8346f01..e1133f7 100644 --- a/lib/racc/parser.rb +++ b/lib/racc/parser.rb @@ -179,8 +179,8 @@ end https://github.com/ruby/ruby/blob/trunk/lib/racc/parser.rb#L179 # Your own parser is completely yours. module Racc - unless defined?(Racc_No_Extentions) - Racc_No_Extentions = false # :nodoc: + unless defined?(Racc_No_Extensions) + Racc_No_Extensions = false # :nodoc: end class Parser @@ -200,7 +200,7 @@ module Racc https://github.com/ruby/ruby/blob/trunk/lib/racc/parser.rb#L200 unless new.respond_to?(:_racc_do_parse_c, true) raise LoadError, 'old cparse.so' end - if Racc_No_Extentions + if Racc_No_Extensions raise LoadError, 'selecting ruby version of racc runtime core' end diff --git a/libexec/racc b/libexec/racc index 5656b25..70e1032 100755 --- a/libexec/racc +++ b/libexec/racc @@ -88,7 +88,7 @@ def main https://github.com/ruby/ruby/blob/trunk/libexec/racc#L88 debug_flags = Racc::DebugFlags.parse_option_string(flags) } #parser.on('--no-extensions', 'Run Racc without any Ruby extension.') { - # Racc.const_set :Racc_No_Extentions, true + # Racc.const_set :Racc_No_Extensions, true #} parser.on('--version', 'Prints version and quit.') { puts "racc version #{Racc::Version}" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/