Skip to content

Add hash rocket '=>' token #464

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

Merged
merged 1 commit into from
Jul 25, 2017
Merged

Conversation

aycabta
Copy link
Member

@aycabta aycabta commented Jul 21, 2017

You can check this feature as sample file below:

# sample code:
#
#     { :a => :b }
#
def meth
end

The original RDoc generates:

original hash rocket highlighting

<pre class="ruby">
{ <span class="ruby-value">:a</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">:b</span> }
</pre>

This separated between = and > as different token types.

RDoc with this Pull Request generates:

with this Pull Request highlighting

<pre class="ruby">
{ <span class="ruby-value">:a</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-value">:b</span> }
</pre>

This provides => as one token.

@hsbt
Copy link
Member

hsbt commented Jul 25, 2017

It seems reasonable.

@hsbt hsbt merged commit aa51b45 into ruby:master Jul 25, 2017
@aycabta aycabta deleted the add-hash-rocket-as-token branch July 25, 2017 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants