aboutsummaryrefslogtreecommitdiff
path: root/spec/dir-spec
diff options
context:
space:
mode:
authorEmil Engler <me@emilengler.com>2023-10-19 20:20:06 +0200
committerEmil Engler <me@emilengler.com>2023-10-19 20:20:06 +0200
commit60a9423d6e7db063fe084c97d2d5bdce7697b33b (patch)
treedea05c0fd511105e912a0470cf0e702893384ceb /spec/dir-spec
parentb585eaad90e39159c9e2b27e3fd4a1c733b53c43 (diff)
downloadtorspec-60a9423d6e7db063fe084c97d2d5bdce7697b33b.tar.gz
torspec-60a9423d6e7db063fe084c97d2d5bdce7697b33b.zip
dir-spec: Fix directory grammar
Diffstat (limited to 'spec/dir-spec')
-rw-r--r--spec/dir-spec/outline.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/dir-spec/outline.md b/spec/dir-spec/outline.md
index 5d3ed01..de969b9 100644
--- a/spec/dir-spec/outline.md
+++ b/spec/dir-spec/outline.md
@@ -81,6 +81,7 @@ all linefeed characters.
More formally:
+```
NL = The ascii LF character (hex value 0x0a).
Document ::= (Item | NL)+
Item ::= KeywordLine Object?
@@ -94,8 +95,9 @@ WS = (SP | TAB)+
Object ::= BeginLine Base64-encoded-data EndLine
BeginLine ::= "-----BEGIN " Keyword (" " Keyword)*"-----" NL
EndLine ::= "-----END " Keyword (" " Keyword)* "-----" NL
+```
-A Keyword may not be "-----BEGIN".
+A Keyword may not be `-----BEGIN`.
The BeginLine and EndLine of an Object must use the same keyword.