aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index f60d248c26..4adf43e871 100644
--- a/parse.y
+++ b/parse.y
@@ -4856,8 +4856,9 @@ token_info_pop(struct parser_params *parser, const char *token)
if (token_info_has_nonspaces(parser, token) || ptinfo->nonspc) { /* SKIP */
goto finish;
}
- rb_warning("mismatched indentations: line %d:'%s' and line %d:'%s'",
- ptinfo->linenum, ptinfo->token, linenum, token);
+ rb_compile_warning(ruby_sourcefile, linenum,
+ "mismatched indentations at '%s' with '%s' at %d",
+ token, ptinfo->token, ptinfo->linenum);
finish:
xfree(ptinfo);