Skip to content

Commit

Permalink
Switch the default of the --prism option to true
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Jan 30, 2024
1 parent 12aa60f commit 728da83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/truffleruby/options/LanguageOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public final class LanguageOptions {
public final boolean RUN_TWICE;
/** --experimental-engine-caching=RUN_TWICE */
public final boolean EXPERIMENTAL_ENGINE_CACHING;
/** --prism=false */
/** --prism=true */
public final boolean PRISM;

public LanguageOptions(Env env, OptionValues options, boolean singleContext) {
Expand Down
2 changes: 1 addition & 1 deletion src/options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,4 @@ INTERNAL: # Options for debugging the TruffleRuby implementation
# Options for the regular expression engines
COMPARE_REGEX_ENGINES: [compare-regex-engines, boolean, false, 'Uses both Joni and the TRegex engine and compares their results']

PRISM: [prism, boolean, false, 'Use Prism as the parser for Ruby code']
PRISM: [prism, boolean, true, 'Use Prism as the parser for Ruby code']
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public final class OptionsCatalog {
public static final OptionKey<Boolean> RUN_TWICE_KEY = new OptionKey<>(false);
public static final OptionKey<Boolean> EXPERIMENTAL_ENGINE_CACHING_KEY = new OptionKey<>(RUN_TWICE_KEY.getDefaultValue());
public static final OptionKey<Boolean> COMPARE_REGEX_ENGINES_KEY = new OptionKey<>(false);
public static final OptionKey<Boolean> PRISM_KEY = new OptionKey<>(false);
public static final OptionKey<Boolean> PRISM_KEY = new OptionKey<>(true);

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

0 comments on commit 728da83

Please sign in to comment.