aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo-lex.l
diff options
context:
space:
mode:
Diffstat (limited to 'engines/director/lingo/lingo-lex.l')
-rw-r--r--engines/director/lingo/lingo-lex.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l
index 8ad8733ef2..c340bd69bc 100644
--- a/engines/director/lingo/lingo-lex.l
+++ b/engines/director/lingo/lingo-lex.l
@@ -50,7 +50,8 @@ whitespace [\t ]
(?i:down) { return tDOWN; }
(?i:if) { return tIF; }
-(?i:else[\t ]+if) { return tELSIF; }
+(?i:[\n\r]+[\t ]+else[\t ]+if) { return tNLELSIF; }
+(?i:[\n\r]+[\t ]+else) { return tNLELSE; }
(?i:else) { return tELSE; }
(?i:end) { return tEND; }
(?i:exit) { return tEXIT; }