1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (parser_yylex): update paren_nest for brackets [].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2005-08-20 15:44:54 +00:00
parent c58a4a5032
commit bde7125880
3 changed files with 7 additions and 2 deletions

View file

@ -1170,7 +1170,7 @@ code_is_in_cclass_node(void* node, OnigCodePoint code, int enclen)
unsigned int in_cc;
CClassNode* cc = (CClassNode* )node;
if (enclen == 1) {
if (enclen == 1 && code < SINGLE_BYTE_SIZE) {
in_cc = BITSET_AT(cc->bs, code);
}
else {