From 33061b45b4555de324b63c53a7151cc5ad599384 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 24 Jun 2002 07:20:42 +0000 Subject: * eval.c (rb_eval): NODE_EVSTR is no longer used. * eval.c (eval): not enforce to make assigned variables dynamic. * parse.y (string): split rules to strings/xstring/regexp to allow arbitrary statements inside string interpolation. * parse.y (here_document): splitted into three phases. * parse.y (literall_append, literal_concat): added. append/concatinate string literals. * sample/test.rb (valid_syntax): adjust line number for BEGIN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample') diff --git a/sample/test.rb b/sample/test.rb index 35855acaa4..fb2aee724d 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -1210,7 +1210,7 @@ else end def valid_syntax?(code, fname) - eval("BEGIN {return true}\n#{code}", nil, fname) + eval("BEGIN {return true}\n#{code}", nil, fname, 0) rescue Exception p $! ensure -- cgit v1.2.3