🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

ruby_parser

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ruby_parser - rubygems Package Compare versions

Comparing version
3.10.1
to
3.11.0
lib/ruby25_parser.rb

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

+12
-0

@@ -0,1 +1,13 @@

=== 3.11.0 / 2018-02-14
* 1 major enhancement:
* Expand to support ruby 2.5 parsing.
* 3 bug fixes:
* Fixed %r lexing when delimiter is also used in (?X) group.
* Restore newline after label to detect required kwarg. (presidentbeef)
* Return `s(:self)` target for `self[]` calls. (presidentbeef)
=== 3.10.1 / 2017-07-21

@@ -2,0 +14,0 @@

+8
-2

@@ -551,3 +551,3 @@ # encoding: UTF-8

return if in_lex_state?(:expr_beg, :expr_value, :expr_class,
:expr_fname, :expr_dot, :expr_labelarg)
:expr_fname, :expr_dot)

@@ -1046,3 +1046,9 @@ if scan(/([\ \t\r\f\v]*)(\.|&)/) then

when scan(/\\(.)/m) then
self.string_buffer << matched
chr = ss[1]
prev = self.string_buffer.last
if term == chr && prev && prev.end_with?("(?") then
self.string_buffer << chr
else
self.string_buffer << matched
end
else

@@ -1049,0 +1055,0 @@ rb_compile_error "Invalid escape character syntax"

+2
-7

@@ -10,3 +10,3 @@ # encoding: ASCII-8BIT

module RubyParserStuff
VERSION = "3.10.1"
VERSION = "3.11.0"

@@ -441,8 +441,3 @@ attr_accessor :lexer, :in_def, :in_single, :file

val[2].sexp_type = :arglist if val[2].sexp_type == :array # REFACTOR
if val[0].node_type == :self then
result = new_call nil, :"[]", val[2]
else
result = new_call val[0], :"[]", val[2]
end
result
new_call val[0], :"[]", val[2]
end

@@ -449,0 +444,0 @@

@@ -75,2 +75,3 @@ require "ruby_parser_extras"

require "ruby24_parser"
require "ruby25_parser"

@@ -80,2 +81,3 @@ class RubyParser # HACK

class V25 < ::Ruby25Parser; end
class V24 < ::Ruby24Parser; end

@@ -82,0 +84,0 @@ class V23 < ::Ruby23Parser; end

@@ -26,2 +26,4 @@ .autotest

lib/ruby24_parser.y
lib/ruby25_parser.rb
lib/ruby25_parser.y
lib/ruby_lexer.rb

@@ -28,0 +30,0 @@ lib/ruby_lexer.rex

@@ -18,3 +18,3 @@ # -*- ruby -*-

V1 = %w[18 19]
V2 = %w[20 21 22 23 24]
V2 = %w[20 21 22 23 24 25]
V1_2 = V1 + V2

@@ -21,0 +21,0 @@

@@ -66,3 +66,3 @@ = ruby_parser

* Extend lib/ruby_parser.yy with new class name.
* Add new version number to Rakefile for rule creation.
* Add new version number to V2 in Rakefile for rule creation.
* Require generated parser in lib/ruby_parser.rb.

@@ -72,3 +72,7 @@ * Add empty TestRubyParserShared##Plus module and TestRubyParserV## to test/test_ruby_parser.rb.

* Extend sexp_processor's pt_testcase.rb to match version
* add_19tests needs to have the version added
* VER_RE needs to have the regexp expanded
Until all of these are done, you won't have a clean test run.
== REQUIREMENTS:

@@ -75,0 +79,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display