aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 05c559a5e5..72602db016 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1018,6 +1018,11 @@ process_options(VALUE arg)
FL_UNSET(rb_load_path, FL_TAINT);
}
+ if (opt->do_check) {
+ printf("Syntax OK\n");
+ return Qtrue;
+ }
+
if (tree) {
if (opt->do_print) {
tree = rb_parser_append_print(parser, tree);