Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86a9ee2 commit 1de49c8Copy full SHA for 1de49c8
spec/syntax.md
@@ -943,6 +943,16 @@ escaped-char = backslash ( backslash / "{" / "|" / "}" )
943
backslash = %x5C ; U+005C REVERSE SOLIDUS "\"
944
```
945
946
+> [!NOTE]
947
+> 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_.
949
+> For example, `|foo {bar}|` and `|foo \{bar\}|` are synonymous.
950
+
951
+When writing or generating a _message_, escape sequences SHOULD NOT be used
952
+unless required by the syntax.
953
+That is, inside _literals_ only escape `|`
954
+and inside _patterns_ only escape `{` and `}`.
955
956
### Whitespace
957
958
**_<dfn>Whitespace</dfn>_** is defined as one or more of
0 commit comments