aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/storycode.y
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-09-16 23:13:26 +0200
committerThomas White <taw@bitwiz.me.uk>2019-09-16 23:13:26 +0200
commit83a9bd9c33a5eb6e54053d0ec8ab1e5b1ddd7826 (patch)
tree76a6ec2dd8c04f71a76e0e62ff7cd4a68eca3799 /libstorycode/storycode.y
parentc6abe4626c40d4925d6233cf0ca1c30cd49a22cd (diff)
Parser fixes
Diffstat (limited to 'libstorycode/storycode.y')
-rw-r--r--libstorycode/storycode.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/libstorycode/storycode.y b/libstorycode/storycode.y
index daf2504..19d9b1f 100644
--- a/libstorycode/storycode.y
+++ b/libstorycode/storycode.y
@@ -243,6 +243,8 @@ text_line:
text_run:
RUN_TEXT { $$.text = $1; $$.type = NARRATIVE_RUN_NORMAL; }
| '*' RUN_TEXT '*' { $$.text = $2; $$.type = NARRATIVE_RUN_BOLD; }
+| '/' RUN_TEXT '/' { $$.text = $2; $$.type = NARRATIVE_RUN_ITALIC; }
+| '_' RUN_TEXT '_' { $$.text = $2; $$.type = NARRATIVE_RUN_UNDERLINE; }
/* -------- Slide -------- */