Closed banister closed 6 years ago
e.g
rb_vm_t *ruby_current_vm ^?ruby_current_vm^A313,7867
The code isn't written to accept both a ^? (\x7) and a ^A (\x01) chars on the same line:
^?
\x7
\x01
https://github.com/pry/pry-doc/blob/master/lib/pry-doc/pry_ext/show_source_with_c_internals/c_file.rb#L28
It expects the line number to appear immediately after the first ^? char
Note that ^A is 001 see here:
^A
001
https://en.wikipedia.org/wiki/Ctags#Etags_2 i.e
{tag_definition_text}<\x7f>{tagname}<\x01>{line_number},{byte_offset} {tagname} (along with <\x01>) can be omitted if the name of the tag can be deduced from the text at the tag definition.
Fixed via https://github.com/pry/pry-doc/commit/cd6b1476e806244c660c49d1764e95f37b3038ba
e.g
The code isn't written to accept both a
^?
(\x7
) and a ^A (\x01
) chars on the same line:https://github.com/pry/pry-doc/blob/master/lib/pry-doc/pry_ext/show_source_with_c_internals/c_file.rb#L28
It expects the line number to appear immediately after the first
^?
charNote that
^A
is001
see here:https://en.wikipedia.org/wiki/Ctags#Etags_2 i.e