We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aef94a9 commit f4263c7Copy full SHA for f4263c7
1 file changed
lib/rdf/turtle/reader.rb
@@ -549,7 +549,7 @@ def error(*args)
549
ctx = ""
550
ctx += "(found #{options[:token].inspect})" if options[:token]
551
ctx += ", production = #{options[:production].inspect}" if options[:production]
552
- lineno = @lineno || (options[:token].lineno if options[:token].respond_to?(:lineno))
+ lineno = @lineno || (options[:token].lineno if options[:token].respond_to?(:lineno)) || @lexer.lineno
553
log_error(*args, ctx,
554
lineno: lineno,
555
token: options[:token],
0 commit comments