From 2b019d9846520047c5b0233829c6007011060e57 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sat, 20 Jun 2020 09:49:09 -0400 Subject: Fixed assertion error in LPeg lexer when setting a style with no token. --- lexers/LexLPeg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lexers/LexLPeg.cxx b/lexers/LexLPeg.cxx index bf5b60774..f4fea6e63 100644 --- a/lexers/LexLPeg.cxx +++ b/lexers/LexLPeg.cxx @@ -787,8 +787,9 @@ public: // Assume a theme change, with the default style being set first. // Subsequent style settings will be based on the default. SS(sci, SCI_STYLECLEARALL, 0, 0); + lua_pop(L, 1); // style } - lua_pop(L, 3); // style, style number, _TOKENSTYLES + lua_pop(L, 2); // style number, _TOKENSTYLES } lua_pop(L, 1); // lexer object or nil ASSERT_STACK_TOP(L); -- cgit v1.2.3