~ecs/qbe2c

9818ad470ea89b8e8d05e44b7ded380e1635d41b — Sebastian 5 months ago 494bc9a
fix keywords

there should probably be logic to handle all identifiers that start with
__ or with _ followed by a capital letter, rather than special-casing a
bunch of stuff, but for now some c23 keywords were missing and when i
first added keywords i added "nullexpr" instead of "nullptr" lol

Signed-off-by: Sebastian <sebastian@sebsite.pw>
1 files changed, 5 insertions(+), 1 deletions(-)

M unparse.ha
M unparse.ha => unparse.ha +5 -1
@@ 16,6 16,9 @@ const keywords: [_]str = [
	"_BitInt",
	"_Bool",
	"_Complex",
	"_Decimal128",
	"_Decimal32",
	"_Decimal64",
	"_Generic",
	"_Imaginary",
	"_Noreturn",


@@ 57,7 60,7 @@ const keywords: [_]str = [
	"inline",
	"int",
	"long",
	"nullexpr",
	"nullptr",
	"register",
	"restrict",
	"return",


@@ 65,6 68,7 @@ const keywords: [_]str = [
	"signed",
	"sizeof",
	"static",
	"static_assert",
	"struct",
	"switch",
	"thread_local",