Accept a stylesheet (alone) as a Storycode document
authorThomas White <taw@bitwiz.me.uk>
Thu, 2 May 2019 19:28:49 +0000 (21:28 +0200)
committerThomas White <taw@bitwiz.me.uk>
Thu, 2 May 2019 19:28:49 +0000 (21:28 +0200)
libstorycode/storycode.y

index a9c3f13..b32173e 100644 (file)
@@ -189,6 +189,7 @@ void set_style(struct scpctx *ctx, const char *element)
 /* The only thing a "presentation" really needs is narrative */
 presentation:
   stylesheet narrative
+| stylesheet
 | narrative
 ;