ruby_parser
Advanced tools
+12
-0
@@ -0,1 +1,13 @@ | ||
| === 3.14.1 / 2019-10-29 | ||
| * 1 minor enhancement: | ||
| * Declared that ruby_parser supports ruby 2.2 and up. | ||
| * 3 bug fixes: | ||
| * Fixed a problem with %W with a null-byte terminator. (wtf?) (spohlenz) | ||
| * Fixed line numbering for command (eg methods without parentheses) arguments. (mvz) | ||
| * Fixed lineno on new dxstrs. (presidentbeef) | ||
| === 3.14.0 / 2019-09-24 | ||
@@ -2,0 +14,0 @@ |
@@ -1180,4 +1180,2 @@ # frozen_string_literal: true | ||
| case | ||
| when paren_re && scan(paren_re) then | ||
| self.string_nest += 1 | ||
| when scan(term_re) then | ||
@@ -1190,2 +1188,4 @@ if self.string_nest == 0 then | ||
| end | ||
| when paren_re && scan(paren_re) then | ||
| self.string_nest += 1 | ||
| when expand && scan(/#(?=[\$\@\{])/) then # TODO: this seems wrong | ||
@@ -1237,5 +1237,5 @@ ss.pos -= 1 | ||
| re = if qwords then | ||
| /[^#{t}#{x}\#\0\\\s]+|./ # |. to pick up whatever | ||
| /[^#{t}#{x}\#\\\s]+|./ # |. to pick up whatever | ||
| else | ||
| /[^#{t}#{x}\#\0\\]+|./ | ||
| /[^#{t}#{x}\#\\]+|./ | ||
| end | ||
@@ -1242,0 +1242,0 @@ |
@@ -31,3 +31,3 @@ # encoding: ASCII-8BIT | ||
| module RubyParserStuff | ||
| VERSION = "3.14.0" | ||
| VERSION = "3.14.1" | ||
@@ -835,2 +835,4 @@ attr_accessor :lexer, :in_def, :in_single, :file | ||
| args.line line | ||
| result = s(:defn, name.to_sym, args).line line | ||
@@ -1245,3 +1247,3 @@ | ||
| else | ||
| str = s(:dxstr, "", str) | ||
| str = s(:dxstr, "", str).line str.line | ||
| end | ||
@@ -1248,0 +1250,0 @@ str |
+2
-0
@@ -27,2 +27,4 @@ # -*- ruby -*- | ||
| require_ruby_version "~> 2.2" | ||
| if plugin? :perforce then # generated files | ||
@@ -29,0 +31,0 @@ V2.each do |n| |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display