summaryrefslogtreecommitdiff
path: root/sample/test.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-24 07:20:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-24 07:20:42 +0000
commit33061b45b4555de324b63c53a7151cc5ad599384 (patch)
treedd0fc8bd441ae6ac82925bfd71fba7c955186f73 /sample/test.rb
parent0e866a2e516d5b7bea0a602d1048b5bdc22a2f98 (diff)
* 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
Diffstat (limited to 'sample/test.rb')
-rw-r--r--sample/test.rb2
1 files changed, 1 insertions, 1 deletions
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