Support modern C++ syntax for integer literals
It will always treat ' as the beginning or ending of character literals.
https://en.cppreference.com/w/cpp/language/integer_literal
This is currently not possible to implement safely. But... with LSP semantic highlighting enabled, LSP could potentially implement the correct semantic highlighting but clangd does not support this at least for the moment.
Implemented the capability to add custom parsers to the syntax tokenizer and added an specific parser for C and C++ numbers which adds support for integer literals (and more). Implementation here. This is ~250 times faster than implementing it with regular expressions 🤯.
Example: