ruby_parser
Advanced tools
+14
-0
@@ -0,1 +1,15 @@ | ||
| === 3.0.0.a2 / 2012-06-19 | ||
| * 1 minor enhancement: | ||
| * Updated to sexp_processor ~> 4.0 | ||
| * 1 bug fix: | ||
| * Fixed new_module to remove scope/block. Not enough tests on module variance. | ||
| * 1 known issue: | ||
| * No parsing of "a.()" thingy. (reported by julian7) (patches welcome!) | ||
| === 3.0.0.a1 / 2012-05-22 | ||
@@ -2,0 +16,0 @@ |
@@ -118,3 +118,3 @@ require 'stringio' | ||
| module RubyParserStuff | ||
| VERSION = '3.0.0.a1' unless constants.include? "VERSION" # SIGH | ||
| VERSION = '3.0.0.a2' unless constants.include? "VERSION" # SIGH | ||
@@ -662,4 +662,13 @@ attr_accessor :lexer, :in_def, :in_single, :file | ||
| line, path, body = val[1], val[2], val[4] | ||
| body = s(:scope, body).compact | ||
| result = s(:module, path, *body[1..-1]) | ||
| result = s(:module, path) | ||
| if body then # REFACTOR? | ||
| if body.first == :block then | ||
| result.push(*body[1..-1]) | ||
| else | ||
| result.push body | ||
| end | ||
| end | ||
| result.line = line | ||
@@ -666,0 +675,0 @@ result.comments = self.comments.pop |
+1
-1
@@ -17,3 +17,3 @@ # -*- ruby -*- | ||
| dependency 'sexp_processor', '~> 3.0' | ||
| dependency 'sexp_processor', '~> 4.0' | ||
@@ -20,0 +20,0 @@ if plugin? :perforce then |