summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-13 07:00:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-13 07:00:16 +0000
commit52e8254b548a06c67fc1c130040925d169b8d2b0 (patch)
tree119a9b405e6443fb417623ab50f05fc9bc6cd305 /parse.y
parentd15cc7a6a33435bff59aeffb4721bed3bc7e43ed (diff)
parse.y: flush debug output
* parse.y (parser_compile_error): flush debug output before compile error message, to keep the order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 410bbdd759..3c76d99585 100644
--- a/parse.y
+++ b/parse.y
@@ -11057,6 +11057,7 @@ parser_compile_error(struct parser_params *parser, const char *fmt, ...)
{
va_list ap;
+ rb_io_flush(parser->debug_output);
parser->error_p = 1;
va_start(ap, fmt);
parser->error_buffer =