Skip to content

Conversation

@jneen
Copy link
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
Member Author

jneen commented Apr 22, 2025

new visual specs:
image

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

@tancnle
Copy link
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

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 <[email protected]>
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

4 participants