rdoc icon indicating copy to clipboard operation
rdoc copied to clipboard

Use Prism instead of Ripper for Ruby source tokenization

Open st0012 opened this issue 1 month ago • 2 comments

st0012 avatar Nov 23 '25 13:11 st0012

🚀 Preview deployment available at: https://a7caabcf.rdoc-6cd.pages.dev (commit: 1433d3f0854832d342f5395956f2074ed85378d2)

matzbot avatar Nov 23 '25 13:11 matzbot

I think creating a new syntax highlighter based on Prism.lex is another option. Syntax highlighting doesn't need state bits. These are used in rdoc/parser/ruby.rb to parse ruby code. I think ripper_state_lex.rb is a bit complicated to be used as a prototype of prism based syntax highlighter

tompng avatar Nov 24 '25 18:11 tompng