anweiss/cddl

.regexp control statements raise false error

sherifhanna-google opened this issue · 1 comments

For this example statement from the CBOR RFC 8610 in section 3.8.3:

nai = tstr .regexp "[A-Za-z0-9]+@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)+"

The following error is raised:

image

Expected rule identifier followed by an assignment token `=`, `=/`, or `=//` cddl 
Target text string must match XSD regex value in the control type

Thanks for reporting this. Looks to be confined to just the Visual Studio Code extension. Otherwise, doesn't seem to be related to the main library.