summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-03 07:30:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-03 07:30:39 +0000
commit7036c4062ec7980ea1966e8b96c73be0bd83bd0c (patch)
tree525fca558579c81117a247dbb05a2f03e6fc3a92
parentbd5406dfa9c5f952556e39eb3f0fecb4d4ee99ff (diff)
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
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
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 <id> 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 <id> '.'
+%token <id> '\\' "backslash"
%token tUPLUS RUBY_TOKEN(UPLUS) "unary+"
%token tUMINUS RUBY_TOKEN(UMINUS) "unary-"
%token tPOW RUBY_TOKEN(POW) "**"