For instance, rgba(0, 0, 0, 10) in C++ code is highlighted properly while rgba(0, 0, 0, 10%) is not. Therefore I tried to modify the colorFunction in server.js, but nothing changes. I don't know whether I need to build coc-highlight from source.
I've tested the following regexp with an online tester. If it is correct, would you please add it to the next release? Thanks.
For instance,
rgba(0, 0, 0, 10)
in C++ code is highlighted properly whilergba(0, 0, 0, 10%)
is not. Therefore I tried to modify the colorFunction in server.js, but nothing changes. I don't know whether I need to build coc-highlight from source.I've tested the following regexp with an online tester. If it is correct, would you please add it to the next release? Thanks.
The difference is that
%?
is added after the last\d+
.