google / gitiles

A simple browser for Git repositories.
https://gerrit.googlesource.com/gitiles/
Other
578 stars 174 forks source link

C++14 single quote (') digit separators aren't rendered correctly in header files #257

Open ewalt1 opened 2 years ago

ewalt1 commented 2 years ago

https://en.cppreference.com/w/cpp/language/integer_literal

If I do something like:

static constexpr int kThisIsOdd = 0b1111'1111;

Then it will treat the ' as a character capture sequence and render all of the subsequent font as green. The same thing works fine in .cc files.