From 405f5596a7c14564b758936a5362fc976b6008cc Mon Sep 17 00:00:00 2001 From: Yan Chen Date: Wed, 15 Oct 2025 16:23:37 -0700 Subject: [PATCH 1/2] allow wit identifier to start with digit in the non-first segment --- component-model/src/design/wit.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/component-model/src/design/wit.md b/component-model/src/design/wit.md index 129c2ca3..b7e5e10e 100644 --- a/component-model/src/design/wit.md +++ b/component-model/src/design/wit.md @@ -88,8 +88,8 @@ Package identifiers are a little more complex and will be covered in the [Packag * An identifier may be preceded by a single `%` sign. * This is _required_ if the identifier would otherwise be a WIT keyword. For example, `interface` is **not** a legal identifier, but `%interface` is legal. -* Each word in the sequence must begin with an ASCII letter, and may contain only ASCII letters and digits. - * A word cannot begin with a digit. +* Each word may contain only ASCII letters and digits. + * The first word cannot begin with a digit. The remaining words can begin with either a digit or a ASCII letter. * A word cannot contain a non-ASCII Unicode character. * A word cannot contain punctuation, underscores, etc. * Each word must be either all `lowercase` or all `UPPERCASE`. From b6171679ef4a429fc3b2e69d1d28977a7098c606 Mon Sep 17 00:00:00 2001 From: Yan Chen Date: Wed, 15 Oct 2025 16:25:02 -0700 Subject: [PATCH 2/2] fix --- component-model/src/design/wit.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/component-model/src/design/wit.md b/component-model/src/design/wit.md index b7e5e10e..41abfbf7 100644 --- a/component-model/src/design/wit.md +++ b/component-model/src/design/wit.md @@ -88,8 +88,8 @@ Package identifiers are a little more complex and will be covered in the [Packag * An identifier may be preceded by a single `%` sign. * This is _required_ if the identifier would otherwise be a WIT keyword. For example, `interface` is **not** a legal identifier, but `%interface` is legal. -* Each word may contain only ASCII letters and digits. - * The first word cannot begin with a digit. The remaining words can begin with either a digit or a ASCII letter. +* Each word may contain only ASCII letters and digits. + * The first word cannot begin with a digit. The remaining words can begin with either a digit or a ASCII letter. * A word cannot contain a non-ASCII Unicode character. * A word cannot contain punctuation, underscores, etc. * Each word must be either all `lowercase` or all `UPPERCASE`.