diff options
| author | mitchell <unknown> | 2020-06-06 21:30:11 -0400 |
|---|---|---|
| committer | mitchell <unknown> | 2020-06-06 21:30:11 -0400 |
| commit | eb06f94013a5674211d50f6dc4ae902075c29a11 (patch) | |
| tree | 3a2c8d1df2d947964942294021ca3c9dbae84849 /lexers/LexLPeg.cxx | |
| parent | f52c3f4db66b87bfee5b4873737bfd6756716aef (diff) | |
| download | scintilla-mirror-eb06f94013a5674211d50f6dc4ae902075c29a11.tar.gz | |
Fixed crash when LexerLPeg cannot find lexer.lua module.
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); |
