diff options
| author | mitchell <unknown> | 2020-06-20 09:49:09 -0400 |
|---|---|---|
| committer | mitchell <unknown> | 2020-06-20 09:49:09 -0400 |
| commit | 2b019d9846520047c5b0233829c6007011060e57 (patch) | |
| tree | c55b21ea6de48dd359a34fcc399967294dda2e36 | |
| parent | ee0e98b74c7e7c64fb9079cd0bacd4c3e840c3b0 (diff) | |
| download | scintilla-mirror-2b019d9846520047c5b0233829c6007011060e57.tar.gz | |
Fixed assertion error in LPeg lexer when setting a style with no token.
| -rw-r--r-- | lexers/LexLPeg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
