summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-06-28 13:27:35 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-06-29 23:45:49 +0900
commit9438c99590f5476a81cee8b4cf2de25084a40b42 (patch)
treec7416588e060d079a082fb62b3a96e40164e4268 /ruby.c
parente94604966572bb43fc887856d54aa54b8e9f7719 (diff)
Rename error_squiggle to error_highlight
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4586
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ruby.c b/ruby.c
index c8b3964c39..d192bad05b 100644
--- a/ruby.c
+++ b/ruby.c
@@ -94,7 +94,7 @@ void rb_warning_category_update(unsigned int mask, unsigned int bits);
#define EACH_FEATURES(X, SEP) \
X(gems) \
SEP \
- X(error_squiggle) \
+ X(error_highlight) \
SEP \
X(did_you_mean) \
SEP \
@@ -322,7 +322,7 @@ usage(const char *name, int help, int highlight, int columns)
};
static const struct message features[] = {
M("gems", "", "rubygems (only for debugging, default: "DEFAULT_RUBYGEMS_ENABLED")"),
- M("error_squiggle", "", "error_squiggle (default: "DEFAULT_RUBYGEMS_ENABLED")"),
+ M("error_highlight", "", "error_highlight (default: "DEFAULT_RUBYGEMS_ENABLED")"),
M("did_you_mean", "", "did_you_mean (default: "DEFAULT_RUBYGEMS_ENABLED")"),
M("rubyopt", "", "RUBYOPT environment variable (default: enabled)"),
M("frozen-string-literal", "", "freeze all string literals (default: disabled)"),
@@ -1511,8 +1511,8 @@ ruby_opt_init(ruby_cmdline_options_t *opt)
if (opt->features.set & FEATURE_BIT(gems)) {
rb_define_module("Gem");
- if (opt->features.set & FEATURE_BIT(error_squiggle)) {
- rb_define_module("ErrorSquiggle");
+ if (opt->features.set & FEATURE_BIT(error_highlight)) {
+ rb_define_module("ErrorHighlight");
}
if (opt->features.set & FEATURE_BIT(did_you_mean)) {
rb_define_module("DidYouMean");