File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
lib/prism/translation/parser Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ module Translation
11
11
class Parser
12
12
# This is the special version numbers that should be used in RuboCop
13
13
# configuration files to trigger using prism.
14
+
14
15
# For Ruby 3.3
15
16
VERSION_3_3 = 80_82_73_83_77.33
17
+
16
18
# For Ruby 3.4
17
19
VERSION_3_4 = 80_82_73_83_77.34
18
20
@@ -24,7 +26,7 @@ def parser_class(ruby_version)
24
26
if ruby_version == Prism ::Translation ::Parser ::VERSION_3_3
25
27
require "prism/translation/parser33"
26
28
Prism ::Translation ::Parser33
27
- if ruby_version == Prism ::Translation ::Parser ::VERSION_3_4
29
+ elsif ruby_version == Prism ::Translation ::Parser ::VERSION_3_4
28
30
require "prism/translation/parser34"
29
31
Prism ::Translation ::Parser34
30
32
else
You can’t perform that action at this time.
0 commit comments