Fix quick-reference cards

This commit is contained in:
Tony Garnock-Jones 2023-10-31 22:17:24 +01:00
parent ac34d3fa8e
commit 334d9df81c
3 changed files with 6 additions and 3 deletions

View File

@ -26,7 +26,8 @@ SignedInteger := int
Embedded := `#!` Value
Annotated := Annotation Value
Annotation := `@` Value | `;` «any unicode scalar except cr or lf»* (cr | lf)
Annotation := `@` Value | `#` ((space | tab) linecomment) (cr | lf)
linecomment := «any unicode scalar except cr or lf»*
escaped := `\\` | `\/` | `\b` | `\f` | `\n` | `\r` | `\t` | `\u` hex hex hex hex
binescaped := `\\` | `\/` | `\b` | `\f` | `\n` | `\r` | `\t` | `\x` hex hex

View File

@ -26,7 +26,8 @@
{:.postcard-grammar.textsyntax}
| *Embedded* | := | `#!`*Value* |
| *Annotated* | := | *Annotation* *Value* |
| *Annotation* | := | `@`*Value* &#124;`;`« any unicode scalar value except **cr** or **lf** »<sup></sup> (**cr** &#124; **lf**) |
| *Annotation* | := | `@`*Value* &#124;`#` ((**space** &#124; **tab**) *linecomment*) (**cr** &#124; **lf**) |
| *linecomment* | := | « any unicode scalar value except **cr** or **lf** »<sup></sup> |
{:.postcard-grammar.textsyntax}
| *escaped* | := | `\\`&#124;`\/`&#124;`\b`&#124;`\f`&#124;`\n`&#124;`\r`&#124;`\t`&#124;`\u`*hex* *hex* *hex* *hex* |

View File

@ -26,7 +26,8 @@ SignedInteger := int
Embedded := `#!` Value
Annotated := Annotation Value
Annotation := `@` Value | `;` «any unicode scalar except cr or lf»* (cr | lf)
Annotation := `@` Value | `#` ((space | tab) linecomment) (cr | lf)
linecomment := «any unicode scalar except cr or lf»*
escaped := `\\` | `\/` | `\b` | `\f` | `\n` | `\r` | `\t` | `\u` hex hex hex hex
binescaped := `\\` | `\/` | `\b` | `\f` | `\n` | `\r` | `\t` | `\x` hex hex