ruby-changes:55758
From: Nobuyoshi <ko1@a...>
Date: Mon, 20 May 2019 12:44:49 +0900 (JST)
Subject: [ruby-changes:55758] Nobuyoshi Nakada: 7ef548c0ac (trunk): Mixed encoding error can continue to parse
https://git.ruby-lang.org/ruby.git/commit/?id=7ef548c0ac From 7ef548c0acf2f8b62db234e39a0f1030902a305c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 20 May 2019 12:43:52 +0900 Subject: Mixed encoding error can continue to parse diff --git a/parse.y b/parse.y index 324ad6b..b0f3622 100644 --- a/parse.y +++ b/parse.y @@ -6572,7 +6572,7 @@ tokadd_string(struct parser_params *p, https://github.com/ruby/ruby/blob/trunk/parse.y#L6572 if (!parser_tokadd_utf8(p, &enc, term, func & STR_FUNC_SYMBOL, func & STR_FUNC_REGEXP)) { - return -1; + continue; } continue; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/