Skip to content

Commit 728da83

Browse files
committed
Switch the default of the --prism option to true
1 parent 12aa60f commit 728da83

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: src/main/java/org/truffleruby/options/LanguageOptions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public final class LanguageOptions {
129129
public final boolean RUN_TWICE;
130130
/** --experimental-engine-caching=RUN_TWICE */
131131
public final boolean EXPERIMENTAL_ENGINE_CACHING;
132-
/** --prism=false */
132+
/** --prism=true */
133133
public final boolean PRISM;
134134

135135
public LanguageOptions(Env env, OptionValues options, boolean singleContext) {

Diff for: src/options.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@ INTERNAL: # Options for debugging the TruffleRuby implementation
265265
# Options for the regular expression engines
266266
COMPARE_REGEX_ENGINES: [compare-regex-engines, boolean, false, 'Uses both Joni and the TRegex engine and compares their results']
267267

268-
PRISM: [prism, boolean, false, 'Use Prism as the parser for Ruby code']
268+
PRISM: [prism, boolean, true, 'Use Prism as the parser for Ruby code']

Diff for: src/shared/java/org/truffleruby/shared/options/OptionsCatalog.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public final class OptionsCatalog {
165165
public static final OptionKey<Boolean> RUN_TWICE_KEY = new OptionKey<>(false);
166166
public static final OptionKey<Boolean> EXPERIMENTAL_ENGINE_CACHING_KEY = new OptionKey<>(RUN_TWICE_KEY.getDefaultValue());
167167
public static final OptionKey<Boolean> COMPARE_REGEX_ENGINES_KEY = new OptionKey<>(false);
168-
public static final OptionKey<Boolean> PRISM_KEY = new OptionKey<>(false);
168+
public static final OptionKey<Boolean> PRISM_KEY = new OptionKey<>(true);
169169

170170
public static final OptionDescriptor LOAD_PATHS = OptionDescriptor
171171
.newBuilder(LOAD_PATHS_KEY, "ruby.load-paths")

0 commit comments

Comments
 (0)