From 51db7cabccf4bdeb4573f55f6b92b36dd2d884b3 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 28 Oct 2024 19:13:53 +0100 Subject: [PATCH 1/2] Clean up `quoted-pattern` definition `complex-body` was already always prefixed by optional space, so in that case there was effectively two subsequent optional spaces: that is unnecessary. It is much cleaner to remove the optional leading space from the `quoted-pattern` definition, and instead move it to explicitly before `quoted-pattern` in `variant`. This change is purely editorial and has no normative impact. --- spec/syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/syntax.md b/spec/syntax.md index 6100b562d1..58e24c7c39 100644 --- a/spec/syntax.md +++ b/spec/syntax.md @@ -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. @@ -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 / "*" ``` From 23d66a4ac8f33e291c0c04f61866017a803f8682 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 28 Oct 2024 20:48:20 +0100 Subject: [PATCH 2/2] fix --- spec/message.abnf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/message.abnf b/spec/message.abnf index a9293040ce..0f3a1c644b 100644 --- a/spec/message.abnf +++ b/spec/message.abnf @@ -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