AtlatestRepositoryfolio

folio / tree / test / fixturesf1b-bracket-only.sgd

1#lang folio/doc
2@note["topics/f1b-bracket-only" title: "The bracket-only trap" tags: '("folio")]
3
4@p{THE INHERITED CONSTRAINT, pinned so a later reader meets it as a test rather
5than as a lost afternoon. The @code{@@query} below is written BRACKET-ONLY, with
6no body at all. It does not fail as an unknown form: it parses as a NAMED BLOCK
7and demands an @code{@@end query} this document has no reason to contain, so the
8parse dies at the enclosing @code{@@end note} with a mismatched-terminator error.
9F2a found it, SD-P7 hit it twice, and both recorded that it fails in a way that
10LOOKS like the thing you were testing.}
12@query["q-bracket-only" title: "Written without braces" spec: '(status ready)]
14@end note