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

Add missing C++11/14 syntax (binary numbers, time literals, variadic templates) #565

Merged
merged 3 commits into from
Aug 6, 2019
Merged

Conversation

rongjiecomputer
Copy link
Contributor

Note: binary literal (line 5), time literal (line 20-27) and variadic template (line 81-84, 119) are not highlighted correctly.

@jneen
Copy link
Member

jneen commented Nov 7, 2016

Thanks for this! I'll try to find some time to work on supporting all this soon.

@pyrmont
Copy link
Contributor

pyrmont commented Aug 2, 2019

For comparison, here is how GitHub highlights the visual sample.

@pyrmont
Copy link
Contributor

pyrmont commented Aug 2, 2019

@rongjiecomputer Sorry this has been outstanding for such a long time. I'm not sure if you're still interested, but I've rebased this against the current master and added the missing syntax. I'm not very familiar with C++ so am not sure if this looks like it should; there are no error tokens and it looks to my eyes broadly consistent with GitHub's highlighting.

@pyrmont pyrmont added the author-action The PR has been reviewed but action by the author is needed label Aug 2, 2019
@pyrmont pyrmont changed the title More C++11/14 tests Add missing C++11/14 syntax (binary numbers, time literals, variadic templates) Aug 2, 2019
@rongjiecomputer
Copy link
Contributor Author

@pyrmont looks good!

@pyrmont pyrmont merged commit 59bcf26 into rouge-ruby:master Aug 6, 2019
@pyrmont pyrmont removed the author-action The PR has been reviewed but action by the author is needed label Aug 6, 2019
@pyrmont
Copy link
Contributor

pyrmont commented Aug 6, 2019

Well, it took three years and I screwed up the commit message but we did it @rongjiecomputer! Rouge will now be able to kick 3.5% more ass when highlighting C++ :D

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.

3 participants