Link xid_start and xid_continue externally to prevent data duplication in binary

This commit is contained in:
Bartłomiej T. Listwon 2024-02-11 11:28:04 +01:00
parent 4e990cd7e5
commit 5ee4b49e42
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ struct CharRange {
char32_t end;
};
static CharRange xid_start[] = {
inline constexpr CharRange xid_start[] = {
{ 0x41, 0x5a },
{ 0x5f, 0x5f },
{ 0x61, 0x7a },
@ -692,7 +692,7 @@ static CharRange xid_start[] = {
{ 0x0, 0x0 },
};
static CharRange xid_continue[] = {
inline constexpr CharRange xid_continue[] = {
{ 0x30, 0x39 },
{ 0x41, 0x5a },
{ 0x5f, 0x5f },