[tor-commits] [torspec/master] bandwidth-file: Replace KeyWord by Key
nickm at torproject.org
nickm at torproject.org
Tue May 14 15:41:01 UTC 2019
commit 57c85e3e3aacf33d7aaf196f566e20f8b9559812
Author: juga0 <juga at riseup.net>
Date: Sun May 12 09:20:46 2019 +0000
bandwidth-file: Replace KeyWord by Key
in the nonterminals definition, so that it match implementations
and does not fail with a grammar parser.
Closes: #30373
---
bandwidth-file-spec.txt | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bandwidth-file-spec.txt b/bandwidth-file-spec.txt
index 1c36558..6bb10a3 100644
--- a/bandwidth-file-spec.txt
+++ b/bandwidth-file-spec.txt
@@ -98,7 +98,7 @@
Int
SP (space)
NL (newline)
- Keyword
+ KeywordChar
ArgumentChar
nickname
hexdigest (a '$', followed by 40 hexadecimal characters
@@ -112,7 +112,8 @@
Line ::= ArgumentChar* NL
RelayLine ::= KeyValue (SP KeyValue)* NL
- KeyValue ::= Keyword "=" Value
+ KeyValue ::= Key "=" Value
+ Key ::= (KeywordChar | "_")+
Value ::= ArgumentCharValue+
ArgumentCharValue ::= any printing ASCII character except NL and SP.
Terminator ::= "=====" or "===="
More information about the tor-commits
mailing list