aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-05-02 21:28:49 +0200
committerThomas White <taw@bitwiz.me.uk>2019-05-02 21:28:49 +0200
commit8d555d1e8d73021a690425efb7ea1f52246f4884 (patch)
tree35d42e972eecbf35ba9a1e270962405bb7881ede
parent417c11923591f7dd2df9bf0412aef4cee44afd74 (diff)
Accept a stylesheet (alone) as a Storycode document
-rw-r--r--libstorycode/storycode.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstorycode/storycode.y b/libstorycode/storycode.y
index a9c3f13..b32173e 100644
--- a/libstorycode/storycode.y
+++ b/libstorycode/storycode.y
@@ -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
;