ruby_parser
Advanced tools
@@ -87,2 +87,3 @@ #!/usr/bin/env ruby -w | ||
| "ε", "none", # bison 3+ | ||
| "%empty", "none", # newer bison | ||
@@ -89,0 +90,0 @@ "/* empty */", "none", |
+6
-0
@@ -0,1 +1,7 @@ | ||
| === 3.20.2 / 2023-06-06 | ||
| * 1 bug fix: | ||
| * 3.2: fixed parsing of f(*) and f(**). (agrobbin) | ||
| === 3.20.1 / 2023-05-16 | ||
@@ -2,0 +8,0 @@ |
@@ -59,3 +59,3 @@ # frozen_string_literal: true | ||
| self.command_start = true | ||
| return :tSTRING_DBEG, matched | ||
| return :tSTRING_DBEG, [matched, lineno] | ||
| when scan(/#/) then | ||
@@ -419,3 +419,3 @@ string_buffer << "#" | ||
| self.command_start = true | ||
| return :tSTRING_DBEG, matched | ||
| return :tSTRING_DBEG, [matched, lineno] | ||
| when scan(/#/) then | ||
@@ -422,0 +422,0 @@ # do nothing but swallow |
@@ -274,2 +274,4 @@ # frozen_string_literal: true | ||
| # TODO: make all tXXXX terminals include lexer.lineno ... enforce it somehow? | ||
| def process_brace_close text | ||
@@ -276,0 +278,0 @@ case matched |
@@ -5,3 +5,3 @@ # frozen_string_literal: true | ||
| # This file is automatically generated. Do not modify it. | ||
| # Generated by: oedipus_lex version 2.6.0. | ||
| # Generated by: oedipus_lex version 2.6.1. | ||
| # Source: lib/ruby_lexer.rex | ||
@@ -8,0 +8,0 @@ #++ |
@@ -33,3 +33,3 @@ # encoding: ASCII-8BIT | ||
| module RubyParserStuff | ||
| VERSION = "3.20.1" | ||
| VERSION = "3.20.2" | ||
@@ -828,6 +828,6 @@ attr_accessor :lexer, :in_def, :in_single, :file | ||
| def new_begin val | ||
| _, lineno, body, _ = val | ||
| (_, line), _, body, _ = val | ||
| result = body ? s(:begin, body) : s(:nil) | ||
| result.line lineno | ||
| result.line line | ||
@@ -933,4 +933,3 @@ result | ||
| def new_class val | ||
| # TODO: get line from class keyword | ||
| _, line, path, superclass, _, body, (_, line_max) = val | ||
| (_, line), path, superclass, _, body, (_, line_max) = val | ||
@@ -1215,3 +1214,3 @@ path = path.first if path.instance_of? Array | ||
| def new_module val | ||
| (_, line_min), _, path, _, body, (_, line_max) = val | ||
| (_, line_min), path, _, body, (_, line_max) = val | ||
@@ -1374,3 +1373,3 @@ path = path.first if path.instance_of? Array | ||
| def new_sclass val | ||
| recv, in_def, in_single, body = val[3], val[4], val[6], val[7] | ||
| (_, line), _, recv, in_def, _, in_single, body, _ = val | ||
@@ -1387,3 +1386,3 @@ result = s(:sclass, recv) | ||
| result.line = val[2] | ||
| result.line = line | ||
| self.in_def = in_def | ||
@@ -1390,0 +1389,0 @@ self.in_single = in_single |
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 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 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