aboutsummaryrefslogtreecommitdiff
path: root/src/storycode.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/storycode.l')
-rw-r--r--src/storycode.l5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/storycode.l b/src/storycode.l
index 80d1a70..16a2375 100644
--- a/src/storycode.l
+++ b/src/storycode.l
@@ -30,6 +30,9 @@
STYLES { return SC_STYLES; }
PRESTITLE { return SC_PRESTITLE; }
-[a-zA-Z0-9]+ { sclval = strdup(yytext); return SC_STRING; }
+: { return SC_COLON; }
+:[ ] { return SC_COLONSPACE; }
+[a-zA-Z0-9 ]+ { sclval = strdup(yytext); return SC_STRING; }
+[\n] { return SC_NEWLINE; }
%%