Rubydoc missing curly brace characters

Open
#803 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby
Domain
documentation

Research direction

Start with lib/parser/source/tree_rewriter.rb at line 46 and compare its documented example with the rendered Rubydoc page for TreeRewriter. Investigate how the Rubydoc rendering handles content inside curly braces; done means the :hello text and curly-brace characters appear correctly in the generated documentation.

Written by the indexing model from the issue text.

Description

I was reading through the documentation on Rubydoc:
https://www.rubydoc.info/gems/parser/Parser/Source/TreeRewriter

If you read the heading of "Multiple actions at the same end points:", it says:

The resulting string will be 'puts(=> [:everybody])'

The :hello is missing.

When I look at the github source code, the :hello is there: https://github.com/whitequark/parser/blob/master/lib/parser/source/tree_rewriter.rb#L46

It seems Rubydoc will remove things wrapped inside the curly brace {}.

Not sure how this can be mitigated though.

Dominant language
Yacc
Stars
1.6k
Forks
205
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from whitequark/parser

All issues in whitequark/parser

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.