lib/rley/parser/earley_parser.rb in rley-0.2.09 vs lib/rley/parser/earley_parser.rb in rley-0.2.10

- old
+ new

@@ -214,11 +214,11 @@ if terminals.size > 1 err_msg << "one of: ['#{term_names.join("', '")}']," else err_msg << ": #{term_names[0]}," end - err_msg << " found a '#{aParsing.tokens[pos-1].terminal.name}' instead." - fail StandardError, err_msg + err_msg << " found a '#{aParsing.tokens[pos - 1].terminal.name}'" + fail StandardError, err_msg + ' instead.' end end # class end # module end # module