Skip to content

c++: expand support for c++ float literals#2123

Merged
tancnle merged 3 commits intomasterfrom
bugfix.cpp-float-f
Apr 23, 2025
Merged

c++: expand support for c++ float literals#2123
tancnle merged 3 commits intomasterfrom
bugfix.cpp-float-f

Conversation

@jneen
Copy link
Copy Markdown
Member

@jneen jneen commented Apr 22, 2025

Fixes #577

@jneen jneen changed the title c++: support f, F as float suffixes c++: expand support for c++ float literals Apr 22, 2025
@jneen
Copy link
Copy Markdown
Member Author

jneen commented Apr 22, 2025

new visual specs:
image

referenced https://en.cppreference.com/w/cpp/language/floating_literal

@tancnle
Copy link
Copy Markdown
Collaborator

tancnle commented Apr 23, 2025

Thanks @jneen ❤️ LGTM 🚀

@tancnle tancnle added this pull request to the merge queue Apr 23, 2025
Merged via the queue into master with commit ecb3690 Apr 23, 2025
8 checks passed
@tancnle tancnle deleted the bugfix.cpp-float-f branch April 23, 2025 14:06
@CookiePLMonster
Copy link
Copy Markdown

Does this not render #578 obsolete?

xaviermignot pushed a commit to xaviermignot/rouge that referenced this pull request Jun 17, 2025
* c++: support f, F as float suffixes

Fixes rouge-ruby#577

* fix the regex nesting and add visual spec

* add support for hex floats and exps

---------

Co-authored-by: jneen <jneen@jneen.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.

C/C++ issue on float suffix highlighting

3 participants