[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torspec/master] bandwidth-file: Replace KeyWord by Key



commit 57c85e3e3aacf33d7aaf196f566e20f8b9559812
Author: juga0 <juga@xxxxxxxxxx>
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 "===="



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits