Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions spec/message.abnf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ complex-body = quoted-pattern / matcher
input-declaration = input o variable-expression
local-declaration = local s variable o "=" o expression

quoted-pattern = o "{{" pattern "}}"
quoted-pattern = "{{" pattern "}}"

matcher = match-statement s variant *(o variant)
match-statement = match 1*(s selector)
selector = variable
variant = key *(s key) quoted-pattern
variant = key *(s key) o quoted-pattern
key = literal / "*"

; Expressions
Expand Down
4 changes: 2 additions & 2 deletions spec/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ A _quoted pattern_ starts with a sequence of two U+007B LEFT CURLY BRACKET `{{`
and ends with a sequence of two U+007D RIGHT CURLY BRACKET `}}`.

```abnf
quoted-pattern = o "{{" pattern "}}"
quoted-pattern = "{{" pattern "}}"
```

A _quoted pattern_ MAY be empty.
Expand Down Expand Up @@ -449,7 +449,7 @@ Each _key_ is separated from each other by whitespace.
Whitespace is permitted but not required between the last _key_ and the _quoted pattern_.

```abnf
variant = key *(s key) quoted-pattern
variant = key *(s key) o quoted-pattern
key = literal / "*"
```

Expand Down