lib/yard/parser/ruby/legacy/ruby_lex.rb in yard-0.5.3 vs lib/yard/parser/ruby/legacy/ruby_lex.rb in yard-0.5.4
- old
+ new
@@ -81,10 +81,10 @@
end
class TkUnknownChar < Token
def initialize(line_no, char_no, id)
super(line_no, char_no)
- @name = char_no.chr
+ @name = char_no > 255 ? '?' : char_no.chr
end
attr :name
end
class TkError < Token