mirror of https://github.com/kdl-org/kdl.git
allow leading 0s, but still limit max length to 6
This commit is contained in:
parent
aa9a4439a5
commit
a84dc3b44f
|
|
@ -983,7 +983,7 @@ string-character :=
|
|||
[^\\"] - disallowed-literal-code-points
|
||||
ws-escape := '\\' (unicode-space | newline)+
|
||||
hex-digit := [0-9a-fA-F]
|
||||
hex-unicode := [\u{0}-\u{10FFFF}] - surrogate // Unicode Scalar Value₁₆
|
||||
hex-unicode := [\u{0}-\u{10FFFF}] - surrogate // Unicode Scalar Value₁₆, leading 0s allowed as long as length ≤ 6
|
||||
surrogate := [\u{D800}-\u{DFFF}]
|
||||
|
||||
raw-string := '#' raw-string-quotes '#' | '#' raw-string '#'
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
no "Non-canonical format for Unicode Scalar Value with extra 0s: \u{00FFFF} instead of \u{FFFF}"
|
||||
Loading…
Reference in New Issue