diff options
Diffstat (limited to 'lexlua/matlab.lua')
-rw-r--r-- | lexlua/matlab.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlua/matlab.lua b/lexlua/matlab.lua index 27a51b0b2..fb3f9b161 100644 --- a/lexlua/matlab.lua +++ b/lexlua/matlab.lua @@ -79,7 +79,7 @@ lex:add_fold_point(lexer.KEYWORD, 'switch', 'end') lex:add_fold_point(lexer.OPERATOR, '(', ')') lex:add_fold_point(lexer.OPERATOR, '[', ']') lex:add_fold_point(lexer.COMMENT, '%{', '%}') -lex:add_fold_point(lexer.COMMENT, '%', lexer.fold_line_comments('%')) -lex:add_fold_point(lexer.COMMENT, '#', lexer.fold_line_comments('#')) +lex:add_fold_point(lexer.COMMENT, lexer.fold_consecutive_lines('%')) +lex:add_fold_point(lexer.COMMENT, lexer.fold_consecutive_lines('#')) return lex |