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 support for numeric literal suffixes in C and CPP #1808

Closed
wants to merge 1 commit into from

Conversation

fgelm01
Copy link
Contributor

@fgelm01 fgelm01 commented Jun 13, 2024

Modify language_c.lua and language_cpp.lua to add support for integer suffixes.

Specifically 123u or 0x123ull are integer literals, including the u and ull suffixes respectively.

@takase1121
Copy link
Member

What's the difference between this and #1752?

@fgelm01
Copy link
Contributor Author

fgelm01 commented Jun 14, 2024

What's the difference between this and #1752?

My regex is overly permissive. It will accept 123ulu, 123uLl or 123luulLLUl even though these aren't allowed in C.

@takase1121
Copy link
Member

takase1121 commented Jun 20, 2024

#1752 and #1818 will supersede this.

@takase1121 takase1121 closed this Jun 20, 2024
@fgelm01
Copy link
Contributor Author

fgelm01 commented Jun 20, 2024

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants