Browse Source

Correct property EBNF for unquoted strings

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/20023)
Pauli 1 year ago
parent
commit
9866200bbe
2 changed files with 2 additions and 20 deletions
  1. 0 18
      crypto/property/properties.ebnf
  2. 2 2
      doc/man7/property.pod

+ 0 - 18
crypto/property/properties.ebnf

@@ -1,18 +0,0 @@
-(* https://bottlecaps.de/rr/ui *)
-
-Definition
-      ::= PropertyName ( '=' Value )? ( ',' PropertyName ( '=' Value )? )*
-Query ::= PropertyQuery ( ',' PropertyQuery )*
-PropertyQuery ::= '-' PropertyName
-        | '?'? ( PropertyName (( '=' | '!=' ) Value)?)
-Value    ::= NumberLiteral
-        | StringLiteral
-StringLiteral ::= QuotedString | UnquotedString
-QuotedString     ::= '"' [^"]* '"'
-        | "'" [^']* "'"
-UnquotedString ::= [^{space},]+
-NumberLiteral
-     ::= '0' ( [0-7]* | 'x' [0-9A-Fa-f]+ )
-        | '-'? [1-9] [0-9]+
-PropertyName
-         ::= [A-Z] [A-Z0-9_]* ( '.' [A-Z] [A-Z0-9_]* )*

+ 2 - 2
doc/man7/property.pod

@@ -154,9 +154,9 @@ The lexical syntax in EBNF is given by:
  Value          ::= NumberLiteral | StringLiteral
  StringLiteral  ::= QuotedString | UnquotedString
  QuotedString   ::= '"' [^"]* '"' | "'" [^']* "'"
- UnquotedString ::= [^{space},]+
+ UnquotedString ::= [A-Za-z] [^{space},]+
  NumberLiteral  ::= '0' ( [0-7]* | 'x' [0-9A-Fa-f]+ ) | '-'? [1-9] [0-9]+
- PropertyName   ::= [A-Z] [A-Z0-9_]* ( '.' [A-Z] [A-Z0-9_]* )*
+ PropertyName   ::= [A-Za-z] [A-Za-z0-9_]* ( '.' [A-Za-z] [A-Za-z0-9_]* )*
 
 =head1 HISTORY