diff --git a/lib/lrama/lexer/token.rb b/lib/lrama/lexer/token.rb index 72d18279..4444e920 100644 --- a/lib/lrama/lexer/token.rb +++ b/lib/lrama/lexer/token.rb @@ -5,7 +5,7 @@ class Token < Struct.new(:s_value, :alias_name, :location, keyword_init: true) attr_accessor :referred def to_s - "#{super} line: #{line}, column: #{column}" + "#{super} location: #{location}" end def referred_by?(string)