From fb011ca6c021a99fa31535408420cf968404a196 Mon Sep 17 00:00:00 2001 From: DJ Adams Date: Tue, 22 Jul 2025 16:48:06 +0100 Subject: [PATCH] add start and end of string anchors to identifier regex in cdl.md This is super minor, of course, but I think the caret helps folks understand the significance of `[$A-Za-z_]` specifically representing the starting character of the identifier name. And when one anchors the start of a string, one should also anchor the end :-) Feel free to reject and call me out as a fool :-) --- cds/cdl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cds/cdl.md b/cds/cdl.md index 4d7770a89..dd082e28d 100644 --- a/cds/cdl.md +++ b/cds/cdl.md @@ -62,7 +62,7 @@ Keywords are *case-insensitive*, but are most commonly used in lowercase notatio Identifiers are *case-significant*, that is, `Foo` and `foo` would identify different things. -Identifiers have to comply to `/[$A-Za-z_]\w*/` or be enclosed in `![`...`]` like that: +Identifiers have to comply to `/^[$A-Za-z_]\w*$/` or be enclosed in `![`...`]` like that: ```cds type ![Delimited Identifier] : String;