From fb769a44d0fe806239e6582b16b7c44b7a778d04 Mon Sep 17 00:00:00 2001 From: Ragnar Groot Koerkamp Date: Mon, 15 Apr 2024 00:09:14 +0200 Subject: [PATCH] Change constants from {%x%} to {{x}}; allow unrecognised names --- spec/2023-07-draft.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/2023-07-draft.md b/spec/2023-07-draft.md index 4682bb9d..9078f053 100644 --- a/spec/2023-07-draft.md +++ b/spec/2023-07-draft.md @@ -272,8 +272,10 @@ If a list is given, the problem may only be solved using those programming langu A map of names to values. Names must match the following regex: `[a-zA-Z0-9_.-]`. -*Constant sequences* are tokens (regex words) of the form {% raw %}`{%name%}`{% endraw %}. -The `name` in every constant sequence must be a valid constant name. +*Constant sequences* are tokens (regex words) of the form `{{name}}`, +where `name` is one of the names defined in `constants`. +Tags `{{xyz}}` containing a name that is not defined are not modified, but may be warned for. + All constant sequences in the following files will be replaced by the value of the corresponding constant, formatted as described below: - problem statements - input and output validators