aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/lexer.lua
diff options
context:
space:
mode:
authormitchell <unknown>2018-06-05 14:37:41 -0400
committermitchell <unknown>2018-06-05 14:37:41 -0400
commit2b8b27ed8221c50f70e0a35e018aa530856126a5 (patch)
tree029f3ad8f7140063051c5c45a417b8ea81e6e10d /lexlua/lexer.lua
parentbeaf4e3e3fdadfe710c143299a611ada30b7b547 (diff)
downloadscintilla-mirror-2b8b27ed8221c50f70e0a35e018aa530856126a5.tar.gz
Handle legacy lexer "_fold" functions.
Diffstat (limited to 'lexlua/lexer.lua')
-rw-r--r--lexlua/lexer.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lexlua/lexer.lua b/lexlua/lexer.lua
index 6c063fcb5..587479633 100644
--- a/lexlua/lexer.lua
+++ b/lexlua/lexer.lua
@@ -1511,6 +1511,8 @@ local function process_legacy_lexer(lexer)
if lexer._foldsymbols._case_insensitive then
lexer._CASEINSENSITIVEFOLDPOINTS = true
end
+ elseif lexer._fold then
+ lexer.fold = function(self, ...) return lexer._fold(...) end
end
end