diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-22 07:29:50 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-22 07:29:50 +0000 |
| commit | 8dde296c8820a79b2818fa0b2fb4f81c5c4abb9d (patch) | |
| tree | c912f7e56e53ea692fae294f5f87d997cb3b44fb /parse.y | |
| parent | aee92da57ac9646f9d776411539c1f8346e7755f (diff) | |
| download | ruby-8dde296c8820a79b2818fa0b2fb4f81c5c4abb9d.tar.gz ruby-8dde296c8820a79b2818fa0b2fb4f81c5c4abb9d.tar.xz ruby-8dde296c8820a79b2818fa0b2fb4f81c5c4abb9d.zip | |
/p is back for transit
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -1434,7 +1434,7 @@ cases : opt_else exc_list : args | none -exc_var : kIN lhs +exc_var : ':' lhs { $$ = $2; } @@ -2257,7 +2257,8 @@ parse_regx(term, paren) options |= RE_OPTION_EXTENDED; break; case 'p': /* /p is obsolete, works as /m */ - yyerror("/p option is obsolete; use /m\n\tnote: /m does not change ^, $ behavior"); + rb_warn("/p option is obsolete; use /m\n\tnote: /m does not change ^, $ behavior"); + options |= RE_OPTION_POSIXLINE; break; case 'm': options |= RE_OPTION_MULTILINE; @@ -2266,16 +2267,16 @@ parse_regx(term, paren) once = 1; break; case 'n': - kcode = 8; + kcode = 16; break; case 'e': - kcode = 16; + kcode = 32; break; case 's': - kcode = 24; + kcode = 48; break; case 'u': - kcode = 32; + kcode = 64; break; default: pushback(c); @@ -4654,7 +4655,7 @@ rb_intern(name) const char *name; { static ID last_id = LAST_TOKEN; - int id; + ID id; int last; if (st_lookup(sym_tbl, name, &id)) |
