-
Notifications
You must be signed in to change notification settings - Fork 590
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
[C] Add digit separator like is already implemented for C++ #4101
Conversation
c7c977a
to
2b6f6ee
Compare
I fixed the test issues with Objectice-C. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe following 2 meta.number
tests can be extended to be inline with the other assertions. Otherwise LGTM!
2b6f6ee
to
6cd133b
Compare
6cd133b
to
8f2817b
Compare
C23 added this feature previously available in C++. This should close sublimehq#3972 as well as both C and C++ now have syntax support for the ' digit separator. This was implemented by just copying the digit variables from the C++ syntax file as it is the same construct in the end. The existing tests were updated to fix the part of the existing tests were broken by this new feature. Furthermore, some tests from C++ were adapted for C to add better testing for the new digit seperator. I also included tests for the newer base 2 integer contants. The C file did not have any tests for that yet.
8b4d672
to
3925799
Compare
I rebased upon latest master. |
FWIW, it is not necessary to always rebase unless there are conflicts. |
I'm aware but I got into the habit because of the issues that can be caused from being behind. |
C23 added this feature previously available in C++. This should close #3972 as well as both C and C++ now have syntax support for the ' digit separator.
This was implemented by just copying the digit variables from the C++ syntax file as it is the same construct in the end. The existing tests were updated to fix the part of the existing tests were broken by this new feature.
Furthermore, some tests from C++ were adapted for C to add better testing for the new digit seperator. I also included tests for the newer base 2 integer contants. The C file did not have any tests for that yet.