From 7036c4062ec7980ea1966e8b96c73be0bd83bd0c Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 3 Feb 2018 07:30:39 +0000 Subject: parse.y: named backslash * parse.y: named backslash to show unexpected character. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 1 + 1 file changed, 1 insertion(+) (limited to 'parse.y') diff --git a/parse.y b/parse.y index c443343156..10d6d2f08c 100644 --- a/parse.y +++ b/parse.y @@ -836,6 +836,7 @@ static void token_info_pop(struct parser_params*, const char *token, const rb_co %type f_kwrest f_label f_arg_asgn call_op call_op2 reswords relop dot_or_colon %token END_OF_INPUT 0 "end-of-input" %token '.' +%token '\\' "backslash" %token tUPLUS RUBY_TOKEN(UPLUS) "unary+" %token tUMINUS RUBY_TOKEN(UMINUS) "unary-" %token tPOW RUBY_TOKEN(POW) "**" -- cgit v1.2.3