From 5b21271e64c2abe31f6f4d7663a6f2bd2b9e5936 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 19 Oct 2025 10:34:04 -0600 Subject: [PATCH] regen/unicode_constants: Create one for SHY The soft hypen is treated specially in toke.c --- regen/unicode_constants.pl | 1 + unicode_constants.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/regen/unicode_constants.pl b/regen/unicode_constants.pl index 538a397edc..8afc217034 100644 --- a/regen/unicode_constants.pl +++ b/regen/unicode_constants.pl @@ -1039,6 +1039,7 @@ U+FFFD string U+10FFFF string MAX_UNICODE +SHY native NBSP native NBSP string diff --git a/unicode_constants.h b/unicode_constants.h index 78b4016832..574678d9e1 100644 --- a/unicode_constants.h +++ b/unicode_constants.h @@ -76,6 +76,7 @@ bytes. # define MAX_UNICODE_UTF8 "\xF4\x8F\xBF\xBF" /* U+10FFFF */ +# define SHY_NATIVE 0xAD /* U+00AD */ # define NBSP_NATIVE 0xA0 /* U+00A0 */ # define NBSP_UTF8 "\xC2\xA0" /* U+00A0 */ @@ -142,6 +143,7 @@ bytes. # define MAX_UNICODE_UTF8 "\xEE\x42\x73\x73\x73" /* U+10FFFF */ +# define SHY_NATIVE 0xCA /* U+00AD */ # define NBSP_NATIVE 0x41 /* U+00A0 */ # define NBSP_UTF8 "\x80\x41" /* U+00A0 */ @@ -208,6 +210,7 @@ bytes. # define MAX_UNICODE_UTF8 "\xEE\x42\x72\x72\x72" /* U+10FFFF */ +# define SHY_NATIVE 0xCA /* U+00AD */ # define NBSP_NATIVE 0x41 /* U+00A0 */ # define NBSP_UTF8 "\x78\x41" /* U+00A0 */