Skip to content
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

Bugfix: Allow rust tuple indexing #1580

Merged
merged 3 commits into from
Sep 8, 2020

Conversation

hugopeixoto
Copy link
Contributor

lorem.0 is now supported.

Fixes #958.

@hugopeixoto hugopeixoto changed the title Allow rust tuple indexing Bugfix: Allow rust tuple indexing Sep 7, 2020
`lorem.0` is now supported
@pyrmont pyrmont added the needs-review The PR needs to be reviewed label Sep 8, 2020
@pyrmont pyrmont self-assigned this Sep 8, 2020
lib/rouge/lexers/rust.rb Outdated Show resolved Hide resolved
@pyrmont pyrmont added author-action The PR has been reviewed but action by the author is needed and removed needs-review The PR needs to be reviewed labels Sep 8, 2020
@pyrmont pyrmont merged commit 1bd8eb1 into rouge-ruby:master Sep 8, 2020
@pyrmont
Copy link
Contributor

pyrmont commented Sep 8, 2020

Thanks for adding this, too!

@pyrmont pyrmont removed the author-action The PR has been reviewed but action by the author is needed label Sep 8, 2020
mattt pushed a commit to NSHipster/rouge that referenced this pull request May 19, 2021
Currently, the Rust lexer does not support tuple index expressions. This
commit adds that support. To differentiate between tuple index
expressions and field access expressions, the `Name::Attribute` token
is used.

Co-authored-by: Michael Camilleri <mike@inqk.net>
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.

Rust: Tuple indexing causes red highlight
2 participants