diff options
Diffstat (limited to 'crawl-ref/source/util/levcomp.lpp')
-rw-r--r-- | crawl-ref/source/util/levcomp.lpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/util/levcomp.lpp b/crawl-ref/source/util/levcomp.lpp index 96331e45d1..cf803cdc00 100644 --- a/crawl-ref/source/util/levcomp.lpp +++ b/crawl-ref/source/util/levcomp.lpp @@ -156,13 +156,13 @@ NSPACE [^\ \t\r\n] ^\s*MAP { BEGIN(MAPDEF); } -^: { BEGIN(LUA_ONELINER); return MAIN; } +^[ \t]*: { BEGIN(LUA_ONELINER); return MAIN; } -^prelude[ \t]*\{\{ { BEGIN(LUA); return PRELUDE; } -^lua[ \t]*\{\{ { BEGIN(LUA); return MAIN; } +^[ \t]*prelude[ \t]*\{\{ { BEGIN(LUA); return PRELUDE; } +^[ \t]*lua[ \t]*\{\{ { BEGIN(LUA); return MAIN; } ^[ \t]*\{\{ { BEGIN(LUA); return MAIN; } -^validate[ \t]*\{\{ { BEGIN(LUA); return VALIDATE; } -^veto[ \t]*\{\{ { BEGIN(LUA); return VETO; } +^[ \t]*validate[ \t]*\{\{ { BEGIN(LUA); return VALIDATE; } +^[ \t]*veto[ \t]*\{\{ { BEGIN(LUA); return VETO; } NAME: { BEGIN(ARGUMENT); return NAME; } |