Avoid confusing dashes/numerics in symunicode at start of a symbol

This commit is contained in:
Tony Garnock-Jones 2019-08-18 16:51:46 +01:00
parent 7d2ffe640d
commit 3c676cb3de
1 changed files with 7 additions and 5 deletions

View File

@ -347,14 +347,16 @@ escape syntax, except using a bar or pipe character (`|`) instead of a
double quote mark. double quote mark.
Symbol = symstart *symcont / "|" *symchar "|" Symbol = symstart *symcont / "|" *symchar "|"
symstart = ALPHA / sympunct / symunicode symstart = ALPHA / sympunct / symustart
symcont = ALPHA / sympunct / symunicode / DIGIT / "-" symcont = ALPHA / sympunct / symustart / symucont / DIGIT / "-"
sympunct = "~" / "!" / "$" / "%" / "^" / "&" / "*" / sympunct = "~" / "!" / "$" / "%" / "^" / "&" / "*" /
"?" / "_" / "=" / "+" / "/" / "." "?" / "_" / "=" / "+" / "/" / "."
symchar = unescaped / %x22 / escape (escaped / %x7C / %s"u" 4HEXDIG) symchar = unescaped / %x22 / escape (escaped / %x7C / %s"u" 4HEXDIG)
symunicode = <any code point greater than 127 whose Unicode symustart = <any code point greater than 127 whose Unicode
category is Lu, Ll, Lt, Lm, Lo, Mn, Mc, Me, Nd, category is Lu, Ll, Lt, Lm, Lo, Mn, Mc, Me,
Nl, No, Pd, Pc, Po, Sc, Sm, Sk, So, or Co> Pc, Po, Sc, Sm, Sk, So, or Co>
symucont = <any code point greater than 127 whose Unicode
category is Nd, Nl, No, or Pd>
[^cf-sexp-token]: Compare with the [SPKI S-expression][sexp.txt] [^cf-sexp-token]: Compare with the [SPKI S-expression][sexp.txt]
definition of "token representation", and with the definition of "token representation", and with the