lib/rdf/turtle/reader.rb in rdf-turtle-2.0.0 vs lib/rdf/turtle/reader.rb in rdf-turtle-2.2.0

- old
+ new

@@ -547,10 +547,10 @@ # @see {#debug} def error(*args) ctx = "" ctx += "(found #{options[:token].inspect})" if options[:token] ctx += ", production = #{options[:production].inspect}" if options[:production] - lineno = @lineno || (options[:token].lineno if options[:token].respond_to?(:lineno)) + lineno = @lineno || (options[:token].lineno if options[:token].respond_to?(:lineno)) || @lexer.lineno log_error(*args, ctx, lineno: lineno, token: options[:token], production: options[:production], exception: SyntaxError)