ruby_parser
Advanced tools
+7
-0
@@ -0,1 +1,8 @@ | ||
| === 3.10.1 / 2017-07-21 | ||
| * 2 bug fixes: | ||
| * Fixed identification of parser version whether Ruby##Parser or Parser::V##. | ||
| * Fixed squiggly heredoc lexing when using 24 parser. | ||
| === 3.10.0 / 2017-07-17 | ||
@@ -2,0 +9,0 @@ |
| # encoding: UTF-8 | ||
| $DEBUG = true if ENV["DEBUG"] | ||
| class RubyLexer | ||
@@ -219,3 +221,3 @@ | ||
| string_content = heredoc_dedent(string_content) if content_indent && ruby23? | ||
| string_content = heredoc_dedent(string_content) if content_indent && ruby23plus? | ||
@@ -269,3 +271,3 @@ return :tSTRING_CONTENT, string_content | ||
| heredoc_indent_mods = '-' | ||
| heredoc_indent_mods += '\~' if ruby23? | ||
| heredoc_indent_mods += '\~' if ruby23plus? | ||
@@ -1180,4 +1182,4 @@ case | ||
| def ruby23? | ||
| Ruby23Parser === parser | ||
| def ruby23plus? | ||
| parser.class.version >= 23 | ||
| end | ||
@@ -1184,0 +1186,0 @@ |
@@ -10,3 +10,3 @@ # encoding: ASCII-8BIT | ||
| module RubyParserStuff | ||
| VERSION = "3.10.0" | ||
| VERSION = "3.10.1" | ||
@@ -13,0 +13,0 @@ attr_accessor :lexer, :in_def, :in_single, :file |
@@ -20,3 +20,3 @@ require "ruby_parser_extras" | ||
| def self.version | ||
| Parser > self and self.name[/V(\d+)$/, 1].to_i | ||
| Parser > self and self.name[/(?:V|Ruby)(\d+)/, 1].to_i | ||
| end | ||
@@ -23,0 +23,0 @@ end |
Sorry, the diff of this file is too big to display