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

Rust: add support for octal literals #1643

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

nsfisis
Copy link
Contributor

@nsfisis nsfisis commented Dec 2, 2020

Langauge

Rust

Description

Add support for octal literals like 0o123.

cf. Rust Reference: Integer Literals

Screenshots

Before:

image

After:

image

@pyrmont pyrmont merged commit da7aa9a into rouge-ruby:master Dec 8, 2020
@pyrmont
Copy link
Contributor

pyrmont commented Dec 8, 2020

@nsfisis Thanks for this! I'm about to cut a new release of Rouge and this will be included in that 🎉

mattt pushed a commit to NSHipster/rouge that referenced this pull request May 19, 2021
The Rust lexer is missing support for octal literals. This commit adds
support.
@nsfisis nsfisis deleted the bugfix.rust-octal-literal branch April 3, 2023 12:40
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.

None yet

2 participants