Permalink
Browse files

Updated for changes to splat node in many contexts.

From p4 revision #4448

git-svn-id: http://parsetree.rubyforge.org/svn/ruby_parser/dev@447 7a5a0b6c-800e-4c83-962a-1aaaaaa870b8
  • Loading branch information...
1 parent 59e8a95 commit 1164050417fa09f4e56be13c8a2344569fd6bb01 zenspider committed Nov 4, 2008
Showing with 9 additions and 9 deletions.
  1. +7 −0 History.txt
  2. +1 −2 bin/ruby_parse
  3. +0 −1 lib/ruby_parser.y
  4. +1 −6 lib/ruby_parser_extras.rb
View
@@ -1,3 +1,10 @@
+=== 2.0.1 / 2008-11-04
+
+* 2 minor enhancements:
+
+ * Updated for changes to splat node in many contexts.
+ * Made PT a developer dep
+
=== 2.0.0 / 2008-10-22
* 1 major enhancement
View
@@ -85,5 +85,4 @@ puts format % [total_time,
total_kbytes / total_time,
total_kbytes,
total_loc,
- "TOTAL"]
-
+ "TOTAL"] unless total_time == 0
View
@@ -717,7 +717,6 @@ rule
| tSTAR arg opt_nl
{
result = s(:array, s(:splat, val[1]))
- result.paren = true
}
paren_args: tLPAREN2 none tRPAREN
@@ -113,7 +113,7 @@ def scan re
end
class RubyParser < Racc::Parser
- VERSION = '2.0.0'
+ VERSION = '2.0.1'
attr_accessor :lexer, :in_def, :in_single, :file
attr_reader :env, :comments
@@ -647,10 +647,6 @@ def new_super args
s(:super, args)
else
args ||= s(:arglist)
- if args[0] == :arglist && args.splat then
- args[0] = :array
- args = s(:dummy, args)
- end
s(:super, *args[1..-1])
end
end
@@ -708,7 +704,6 @@ def new_yield args = nil
# TODO: I can prolly clean this up
args[0] = :arglist if args.first == :array
- args[0] = :array if args[0] == :arglist && args.splat
args = s(:arglist, args) unless args.first == :arglist
return s(:yield, *args[1..-1])

0 comments on commit 1164050

Please sign in to comment.