mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parse.y (heredoc_identifier): Update comment for term_len
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
352446428d
commit
e70cad6091
1 changed files with 5 additions and 1 deletions
6
parse.y
6
parse.y
|
@ -5980,7 +5980,11 @@ parse_string(struct parser_params *p, rb_strterm_literal_t *quote)
|
|||
static enum yytokentype
|
||||
heredoc_identifier(struct parser_params *p)
|
||||
{
|
||||
int c = nextc(p), term, func = 0, term_len = 2; /* length of "<<" */
|
||||
/*
|
||||
* term_len is length of `<<"END"` except `END`,
|
||||
* in this case term_len is 4 (<, <, " and ").
|
||||
*/
|
||||
int c = nextc(p), term, func = 0, term_len = 2;
|
||||
enum yytokentype token = tSTRING_BEG;
|
||||
long len;
|
||||
int newline = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue