aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/tex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lexlua/tex.lua')
-rw-r--r--lexlua/tex.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlua/tex.lua b/lexlua/tex.lua
index 5dfb9ea0e..cf5f94d0f 100644
--- a/lexlua/tex.lua
+++ b/lexlua/tex.lua
@@ -27,7 +27,7 @@ lex:add_rule('command', token(lexer.KEYWORD, '\\' * (lexer.alpha^1 +
lex:add_rule('operator', token(lexer.OPERATOR, S('$&#{}[]')))
-- Fold points.
-lex:add_fold_point(lexer.COMMENT, '%', lexer.fold_line_comments('%'))
+lex:add_fold_point(lexer.COMMENT, lexer.fold_consecutive_lines('%'))
lex:add_fold_point('environment', '\\begin', '\\end')
lex:add_fold_point(lexer.OPERATOR, '{', '}')