diff options
Diffstat (limited to 'lexers/LexLPeg.cxx')
| -rw-r--r-- | lexers/LexLPeg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lexers/LexLPeg.cxx b/lexers/LexLPeg.cxx index a78189769..bf5b60774 100644 --- a/lexers/LexLPeg.cxx +++ b/lexers/LexLPeg.cxx @@ -479,6 +479,8 @@ class LexerLPeg : public DefaultLexer { if (status == LUA_OK && lua_pcall(L, 0, 1, -2) == LUA_OK) break; return (LogError(L), false); } + if (lua_isnil(L, -1)) + return (LogError(L, "'lexer.lua' module not found"), false); lua_remove(L, -2); // lua_error_handler lua_replace(L, -2); // nil lua_pushinteger(L, SC_FOLDLEVELBASE); |
