diff options
author | Kevin Newton <kddnewton@gmail.com> | 2024-05-01 18:54:05 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-05-01 23:03:25 +0000 |
commit | 8e1647c3aaae357114720a4caf0f39c1fe743b2d (patch) | |
tree | bf8013871c8b87cef60e1fc3b6a5987bf0049d0a /lib/prism/translation | |
parent | 5cd0abdfb58e3ff35d18ce87f1201582e0142d15 (diff) |
[ruby/prism] Support passing version 3.3.1
https://github.com/ruby/prism/commit/445a0f0d22
Diffstat (limited to 'lib/prism/translation')
-rw-r--r-- | lib/prism/translation/parser.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/prism/translation/parser.rb b/lib/prism/translation/parser.rb index 0d11b8f566..f83448722c 100644 --- a/lib/prism/translation/parser.rb +++ b/lib/prism/translation/parser.rb @@ -149,17 +149,17 @@ module Prism Diagnostic.new(:error, :endless_setter, {}, diagnostic_location, []) when :embdoc_term Diagnostic.new(:error, :embedded_document, {}, diagnostic_location, []) - when :incomplete_variable_class, :incomplete_variable_class_3_3_0 + when :incomplete_variable_class, :incomplete_variable_class_3_3 location = location.copy(length: location.length + 1) diagnostic_location = build_range(location, offset_cache) Diagnostic.new(:error, :cvar_name, { name: location.slice }, diagnostic_location, []) - when :incomplete_variable_instance, :incomplete_variable_instance_3_3_0 + when :incomplete_variable_instance, :incomplete_variable_instance_3_3 location = location.copy(length: location.length + 1) diagnostic_location = build_range(location, offset_cache) Diagnostic.new(:error, :ivar_name, { name: location.slice }, diagnostic_location, []) - when :invalid_variable_global, :invalid_variable_global_3_3_0 + when :invalid_variable_global, :invalid_variable_global_3_3 Diagnostic.new(:error, :gvar_name, { name: location.slice }, diagnostic_location, []) when :module_in_method Diagnostic.new(:error, :module_in_def, {}, diagnostic_location, []) |