Closed adah1972 closed 3 years ago
Looks good.
I have found another problem with case. I'll push a fix soon.
Any more questions? Or more changes that I should make?
@mattn @k-takata
It seems okay to me. @k-takata what do you think this?
syntax for 0b0.1
is right?
#include <iostream>
#include <string>
#include <algorithm>
int
main(int argc, char* argv[]) {
auto i = 1000y;
auto i = 1000.1y;
auto i = 1000d;
auto i = 10.00d;
auto i = 00d;
auto i = -00d;
auto i = -00y;
auto i = R"(xxxxyyy)";
auto i = 0b1;
auto i = 0b01;
auto i = 0b0.1;
auto i = 0b02;
return 0;
}
syntax for
0b0.1
is right?
No, it is not. It is actually an interaction problem with c.vim (the fraction part is cFloat, not cppFloat).
I’ve pushed a fix. Also added the support for C++17 hexadecimal float literals.
It's been another week. Did you find time to check again?
@mattn @k-takata
Looks ok to me.
LGTM
Is there anything else I should do before merging?
I'll merge this and I'll send patch to vim-dev. Thanks..
I'll include the changes, thanks.
This PR makes Vim recognize user-defined literals like
"hello"sv
,5.0i
,300ms
,0x123456789abcdef_cppi
, etc.There are some repetitions, which seem usual in syntax files. However, if there is a better way of achieve such effects, let me know.