[ruby-cvs:70693] yui-knk:r63602 (trunk): ast.c: Fix to raise `SyntaxError`

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Thu Jun 7 23:04:49 JST 2018


yui-knk	2018-06-07 23:04:49 +0900 (Thu, 07 Jun 2018)

  New Revision: 63602

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63602

  Log:
    ast.c: Fix to raise `SyntaxError`
    
    * ast.c: Fix to raise `SyntaxError` when `RubyVM::AST.parse`
      or `RubyVM::AST.parse_file` fail to parse input.
    * test/ruby/test_ast.rb: Add test cases for invalid syntax.

  Modified files:
    trunk/ast.c
    trunk/test/ruby/test_ast.rb


More information about the ruby-cvs mailing list