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

[cpp] fix cpp binary literal digit separator #1620

Merged
merged 4 commits into from
Nov 9, 2020
Merged

[cpp] fix cpp binary literal digit separator #1620

merged 4 commits into from
Nov 9, 2020

Conversation

swheaton
Copy link
Contributor

@swheaton swheaton commented Nov 9, 2020

This fixes an issue with digit separators (') in binary literals in C++. Separator character is ' not _.

@pyrmont pyrmont self-assigned this Nov 9, 2020
@pyrmont pyrmont merged commit b4cdfaf into rouge-ruby:master Nov 9, 2020
@pyrmont
Copy link
Contributor

pyrmont commented Nov 9, 2020

@swheaton Thanks for fixing this 🎉 Must have come across in an erroneous copy and paste. This will be included in the next release of Rouge, v3.25.0. That is scheduled for release on Tuesday 10 November.

@swheaton swheaton deleted the fix_cpp_binary_dig_separator branch November 9, 2020 01:34
@swheaton
Copy link
Contributor Author

swheaton commented Nov 9, 2020

👍 👍

mattt pushed a commit to NSHipster/rouge that referenced this pull request May 19, 2021
The C++ lexer uses `_` as a digit separator for binary literals. This
is syntactically incorrect. The digit separator in C++ is `'`. This
commit fixes that error.

Co-authored-by: Stuart <stuart.wheaton@jhuapl.edu>
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.

None yet

2 participants