@@ -675,7 +675,7 @@ reserved-annotation = reserved-annotation-start [[s] reserved-body]
675675reserved-annotation-start = "!" / "%" / "*" / "+" / "<" / ">" / "?" / "~"
676676
677677reserved-body = reserved-body-part *([s] reserved-body-part)
678- reserved-body-part = reserved-char / escaped-char / quoted
678+ reserved-body-part = reserved-char / escaped-char / quoted-literal
679679```
680680
681681## Markup
@@ -834,27 +834,26 @@ except for U+0000 NULL or the surrogate code points U+D800 through U+DFFF.
834834
835835All code points are preserved.
836836
837- A ** _ <dfn >quoted</dfn >_ ** literal begins and ends with U+005E VERTICAL BAR ` | ` .
838- The characters ` \ ` and ` | ` within a _ quoted _ literal MUST be
837+ A ** _ <dfn >quoted literal </dfn >_ ** begins and ends with U+005E VERTICAL BAR ` | ` .
838+ The characters ` \ ` and ` | ` within a _ quoted literal _ MUST be
839839escaped as ` \\ ` and ` \| ` .
840840
841- An ** _ <dfn >unquoted</dfn >_ ** literal is a _ literal_ that does not require the ` | `
841+ An ** _ <dfn >unquoted literal </dfn >_ ** is a _ literal_ that does not require the ` | `
842842quotes around it to be distinct from the rest of the _ message_ syntax.
843- An _ unquoted _ MAY be used when the content of the _ literal_
843+ An _ unquoted literal _ MAY be used when the content of the _ literal_
844844contains no whitespace and otherwise matches the ` unquoted ` production.
845- Any _ unquoted_ literal MAY be _ quoted_ .
846- Implementations MUST NOT distinguish between _ quoted_ and _ unquoted_ literals
845+ Implementations MUST NOT distinguish between _ quoted literals_ and _ unquoted literals_
847846that have the same sequence of code points.
848847
849- _ Unquoted _ literals can contain a _ name_ or consist of a _ number-literal_ .
848+ _ Unquoted literals _ can contain a _ name_ or consist of a _ number-literal_ .
850849A _ number-literal_ uses the same syntax as JSON and is intended for the encoding
851850of number values in _ operands_ or _ options_ , or as _ keys_ for _ variants_ .
852851
853852``` abnf
854- literal = quoted / unquoted
855- quoted = "|" *(quoted-char / escaped-char) "|"
856- unquoted = name / number-literal
857- number-literal = ["-"] (%x30 / (%x31-39 *DIGIT)) ["." 1*DIGIT] [%i"e" ["-" / "+"] 1*DIGIT]
853+ literal = quoted-literal / unquoted-literal
854+ quoted-literal = "|" *(quoted-char / escaped-char) "|"
855+ unquoted-literal = name / number-literal
856+ number-literal = ["-"] (%x30 / (%x31-39 *DIGIT)) ["." 1*DIGIT] [%i"e" ["-" / "+"] 1*DIGIT]
858857```
859858
860859### Names and Identifiers
@@ -876,7 +875,7 @@ _Option_ _identifiers_ have no prefix.
876875
877876A ** _ <dfn >name</dfn >_ ** is a character sequence used in an _ identifier_
878877or as the name for a _ variable_
879- or the value of an _ unquoted _ _ literal _ .
878+ or the value of an _ unquoted literal _ .
880879
881880_ Variable_ names are prefixed with ` $ ` .
882881
@@ -934,7 +933,7 @@ An **_<dfn>escape sequence</dfn>_** is a two-character sequence starting with
934933U+005C REVERSE SOLIDUS ` \ ` .
935934
936935An _ escape sequence_ allows the appearance of lexically meaningful characters
937- in the body of _ text_ , _ quoted _ , or _ reserved_
936+ in the body of _ text_ , _ quoted literal _ , or _ reserved_
938937(which includes, in this case, _ private-use_ ) sequences.
939938Each _ escape sequence_ represents the literal character immediately following the initial ` \ ` .
940939
@@ -945,7 +944,7 @@ backslash = %x5C ; U+005C REVERSE SOLIDUS "\"
945944
946945> [ !NOTE]
947946> The ` escaped-char ` rule allows escaping some characters in places where
948- > they do not need to be escaped, such as braces in a _ quoted _ _ literal _ .
947+ > they do not need to be escaped, such as braces in a _ quoted literal _ .
949948> For example, ` |foo {bar}| ` and ` |foo \{bar\}| ` are synonymous.
950949
951950When writing or generating a _ message_ , escape sequences SHOULD NOT be used
0 commit comments