schemaparse: do not capture annotation strings

This commit is contained in:
Emery Hemingway 2024-05-22 18:59:03 +03:00
parent 921acb6b21
commit 92c6eb16bb
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ const parser = peg("Schema", p: ParseState):
Value <- Preserves.Value:
discard
Annotation <- '@' * (Preserves.String | Preserves.Record) * S
Annotation <- '@' * ('"' * *Preserves.char * '"' | Preserves.Record) * S
S <- *{ ' ', '\t', '\r', '\n' }