-
Notifications
You must be signed in to change notification settings - Fork 450
Change default ruby parser to RDoc::Parser::PrismRuby #1581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
🚀 Preview deployment available at: https://a0f2332e.rdoc-6cd.pages.dev (commit: d1eaa56) |
| # Here is the <tt>:call-seq:</tt> directive given for this method: | ||
| # | ||
| # :call-seq: | ||
| # \:call-seq: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RDoc::Parser::Ruby specially handles :call-seq:.
# This is a call-seq
# :call-seq: foo(x)
#
# This is a code block in RDoc::Parser::Ruby,
# but a second call-seq in RDoc::Prism::PrismRuby
# :call-seq: foo(y)
#
# Code block in both parser
# \:call-seq: foo(z)
def foo(*); endIndented directives are allowed because indented :include: have special meaning.
# include a file with all lines indented
# :include: file.rb2445ddc to
74047b0
Compare
74047b0 to
d1eaa56
Compare
|
Generating document in 1 file renamed, 3 non-empty files deleted, 69 empty files deleted 1 file renamedRenamed file: The bug below is fixed: module RubyVM::ZJIT
end
class << RubyVM::ZJIT # This moves /RubyVM/ZJIT.html to /ZJIT.html
end3 non-empty files deleted.All these three class/modules are surrounded by 7 linked empty files deletedAll class/modules has 62 unlinked empty files deletedWrong crossref fixed in 5 files
CrossRef added in 50 filesSome might be problematic and needs backslash to suppress crossref.
Other crossref change in 2 files
Other change in 29 filesSome files includes whitespace difference like this: <pre class="ruby"><span class="ruby-identifier">code</span>
</pre>
<!-- ↓ -->
<pre class="ruby"><span class="ruby-identifier">code</span></pre>
|
Fixes #398, #782, #816, #1555, #885, #1373, #1553
Although generated HTML has huge difference, many many bugs are fixed with
RDoc::Parser::PrismRubyparser.Diffs are mostly: many bugfixes, crossrefs, trailing whitespaces in syntax highlight, and perhaps few new bugs.
Old parser can be used with
RDOC_USE_RIPPER_PARSER=1