Skip to content

Define new error "Unknown Markup" #357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions spec/formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,25 @@ These are divided into the following categories:
when * {The value is not one.}
```

- **Unknown Markup errors** occur when an Expression includes
a reference to a markup handler which cannot be resolved.

For example, attempting to format the following messages
MUST result in an Unknown Markup error if done within a context that
does not provide a handler for the markup `+foo` or `-foo`

```
{There are {+foo option=bar}no{-foo} wildebeest here}
```

```
{There are {+foo option=bar}no wildebeest here}
```

```
{There are no{-foo} wildebeest here}
```

- **Selection errors** occur when message selection fails.

- **Selector errors** are failures in the matching of a key to a specific selector.
Expand Down