diff options
Diffstat (limited to 'engines/director/lingo/lingo-lex.l')
-rw-r--r-- | engines/director/lingo/lingo-lex.l | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l index 6a78a3f160..4b0f8fe431 100644 --- a/engines/director/lingo/lingo-lex.l +++ b/engines/director/lingo/lingo-lex.l @@ -68,7 +68,8 @@ whitespace [\t ] (?i:[\n\r]+[\t ]+else[\t ]+if) { countnl(); return tNLELSIF; } (?i:[\n\r]+[\t ]+else) { countnl(); return tNLELSE; } (?i:else) { count(); return tELSE; } -(?i:end) { count(); return tEND; } +(?i:end[\t ]+if) { count(); return tENDIF; } +(?i:end[\t ]+repeat) { count(); return tENDREPEAT; } (?i:exit) { count(); return tEXIT; } (?i:frame) { count(); return tFRAME; } (?i:global) { count(); return tGLOBAL; } |