aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/storycode.y
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2020-01-13 00:06:05 +0100
committerThomas White <taw@bitwiz.me.uk>2020-01-13 00:17:50 +0100
commit1f2629403b9d62ecf44420f789b5c679a8ae1c98 (patch)
tree42f9c50056c089f9d70554dcdae626ffd8f552f1 /libstorycode/storycode.y
parent7304e278ced9adee5884482bbf3223f8ba1ccfde (diff)
Add segment start/end markers
Diffstat (limited to 'libstorycode/storycode.y')
-rw-r--r--libstorycode/storycode.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/libstorycode/storycode.y b/libstorycode/storycode.y
index 0e00e36..eec1abb 100644
--- a/libstorycode/storycode.y
+++ b/libstorycode/storycode.y
@@ -126,6 +126,7 @@
%token IMAGEFRAME
%token FILENAME
%token BP
+%token SEG_START SEG_END
%token FONT GEOMETRY PAD ALIGN FGCOL BGCOL PARASPACE
%token VERT HORIZ
%token LEFT CENTER RIGHT
@@ -324,6 +325,8 @@ narrative:
narrative_el:
PRESTITLE TEXT_START text_line { narrative_add_prestitle(n, $3.runs, $3.n_runs); }
| BP TEXT_START text_line { narrative_add_bp(n, $3.runs, $3.n_runs); }
+| SEG_START TEXT_START text_line { narrative_add_segstart(n, $3.runs, $3.n_runs); }
+| SEG_END { narrative_add_segend(n); }
| TEXT_START text_line { narrative_add_text(n, $2.runs, $2.n_runs); }
| slide { narrative_add_slide(n, $1); }
| EOP { narrative_add_eop(n); }