summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-13 15:43:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-13 15:43:02 +0000
commitb558a48dec0f350f25abdc6917dab27102213c22 (patch)
tree5ba7806e9888994ea744e2be5b47bb3b0f401913 /parse.y
parentf1b727df3f29d79e94b3305a0d07fb25ee057eb1 (diff)
downloadruby-b558a48dec0f350f25abdc6917dab27102213c22.tar.gz
ruby-b558a48dec0f350f25abdc6917dab27102213c22.tar.xz
ruby-b558a48dec0f350f25abdc6917dab27102213c22.zip
* array.c (rb_ary_pop): may cause realloc oscillation. a patch
from MORITA Naoyuki <mlgetter at kidou.sakura.ne.jp>. [ruby-dev:29028] * parse.y (then): we'd like to reserve colon here for the future. warning added. * ruby.h: export rb_cMethod. [ruby-talk:201259] * ext/bigdecimal/bigdecimal.c: Allows '_' to appear within digits. [ruby-dev:28872] * ext/bigdecimal/lib/bigdecimal/util.rb: Bug in to_r reported by [ruby-list:42533] fixed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index af81a897b..d0a106b5f 100644
--- a/parse.y
+++ b/parse.y
@@ -1731,6 +1731,11 @@ primary_value : primary
then : term
| ':'
+ {
+ rb_warn("colon will be obsoleted; use semicolon");
+ value_expr($1);
+ $$ = $1;
+ }
| kTHEN
| term kTHEN
;