Skip to content

Commit

Permalink
Change constants from {%x%} to {{x}}; allow unrecognised names
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarGrootKoerkamp authored and niemela committed Apr 15, 2024
1 parent c29b71a commit fb769a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/2023-07-draft.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb769a4

Please sign in to comment.