From e3af45d5f0b12c61e781b79d5f3f40cde968a8cc Mon Sep 17 00:00:00 2001 From: Erik Ernst Date: Mon, 25 Nov 2024 11:26:04 +0100 Subject: [PATCH] Add commentary to clarify a rule --- working/3616 - enum value shorthand/proposal-simple-lrhn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/working/3616 - enum value shorthand/proposal-simple-lrhn.md b/working/3616 - enum value shorthand/proposal-simple-lrhn.md index d1b112b6e..11d72ee38 100644 --- a/working/3616 - enum value shorthand/proposal-simple-lrhn.md +++ b/working/3616 - enum value shorthand/proposal-simple-lrhn.md @@ -42,7 +42,7 @@ We introduce grammar productions of the form: | 'const' '.' ( | 'new') -- shorthand object creation ``` -We also add `.` to the tokens that an expression statement cannot start with. +We also add `.` to the tokens that an expression statement cannot start with. *Note that the number `.123` does not start with the token `.` because all four characters are recognized as a single token. So we can still have expression statements starting with such a number.* That means you can write things like the following (with the intended meaning as comments, specification to achieve that below):