aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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