* gettext-tools/src/x-c.c (phase5_get): Recognize '_' in C++.
* NEWS: Update.
- C, C++:
xgettext now supports 'p'/'P' exponent markers in number tokens, as
specified in C99 and C++17.
+ - C++:
+ xgettext now supports underscores in number tokens.
- C++:
xgettext now supports single-quotes in number tokens, as specified in
C++14.
case '.':
continue;
+ case '_':
+ if (cxx_extensions)
+ /* In C++, an underscore can be part of a preprocessing number
+ token. */
+ continue;
+ else
+ {
+ phase4_ungetc (c);
+ break;
+ }
+
case '\'':
if (cxx_extensions)
{