Skip to content

Commit 33b98a8

Browse files
committed
Correct ABNF for string syntax; allow beyond-ASCII characters in strings
1 parent 04c0354 commit 33b98a8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

cddl.abnf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ fraction = 1*DIGIT
6666
exponent = int
6767

6868
text = %x22 *SCHAR %x22
69-
SCHAR = %x20-21 / %x23-7E / SESC
70-
SESC = "\" %x20-7E
69+
SCHAR = %x20-21 / %x23-5B / %x5D-10FFFD / SESC
70+
SESC = "\" %x20-10FFFD
7171

7272
bytes = [bsqual] %x27 *BCHAR %x27
73-
BCHAR = %x20-26 / %x28-7E / SESC / CRLF
73+
BCHAR = %x20-26 / %x28-5B / %x5D-10FFFD / SESC / CRLF
7474
bsqual = %x68 ; "h"
7575
/ %x62.36.34 ; "b64"
7676

@@ -89,4 +89,3 @@ NL = COMMENT / CRLF
8989
COMMENT = ";" *(SP / VCHAR) CRLF
9090
VCHAR = %x21-7E
9191
CRLF = %x0A / %x0D.0A
92-

draft-greevenbosch-appsawg-cbor-cddl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ title: >
1414
abbrev: CDDL
1515
area: Applications
1616
wg: ''
17-
date: 2017-05-12
17+
date: 2017-06-28
1818
author:
1919
- ins: H. Birkholz
2020
name: Henk Birkholz

0 commit comments

Comments
 (0)