diff options
author | Kevin Newton <kddnewton@gmail.com> | 2024-05-10 05:39:07 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-05-10 09:39:11 +0000 |
commit | 69d0a3b033cfcb998020d54c0e3cec24b5f07b45 (patch) | |
tree | bed576b3aea52bd5760d09b96e51db4c9564cd7c /lib/irb/ruby-lex.rb | |
parent | 2f915e729ac8c66f4009f4b28a57773923d7e7d1 (diff) |
[ruby/irb] Simplify regexp to account for prism error messages
(https://github.com/ruby/irb/pull/954)
https://github.com/ruby/irb/commit/e0c29be074
Co-authored-by: Stan Lo <stan001212@gmail.com>
Diffstat (limited to 'lib/irb/ruby-lex.rb')
-rw-r--r-- | lib/irb/ruby-lex.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index cfe36be83f..86e340eb05 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -230,7 +230,7 @@ module IRB # example: # ' return :recoverable_error - when /syntax error, unexpected end-of-input/ + when /unexpected end-of-input/ # "syntax error, unexpected end-of-input, expecting keyword_end" # # example: @@ -240,7 +240,7 @@ module IRB # fuga # end return :recoverable_error - when /syntax error, unexpected keyword_end/ + when /unexpected keyword_end/ # "syntax error, unexpected keyword_end" # # example: @@ -250,7 +250,7 @@ module IRB # example: # end return :unrecoverable_error - when /syntax error, unexpected '\.'/ + when /unexpected '\.'/ # "syntax error, unexpected '.'" # # example: |