mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* regparse.c (fetch_token_in_cc): tok->escaped should be
initialized. [ruby-dev:27763] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
479a05bf89
commit
36fbf43b09
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Nov 20 21:39:27 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
|
||||
|
||||
* regparse.c (fetch_token_in_cc): tok->escaped should be
|
||||
initialized. [ruby-dev:27763]
|
||||
|
||||
Sun Nov 20 22:34:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (rb_symname_p): [ not followed by ] is not valid symbol.
|
||||
|
|
|
@ -2621,6 +2621,8 @@ fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
|
|||
tok->type = TK_CHAR;
|
||||
tok->base = 0;
|
||||
tok->u.c = c;
|
||||
tok->escaped = 0;
|
||||
|
||||
if (c == ']') {
|
||||
tok->type = TK_CC_CLOSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue