diff options
Diffstat (limited to 'lexlua/javascript.lua')
-rw-r--r-- | lexlua/javascript.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlua/javascript.lua b/lexlua/javascript.lua index 92ad67ede..592ef5173 100644 --- a/lexlua/javascript.lua +++ b/lexlua/javascript.lua @@ -47,6 +47,6 @@ lex:add_rule('operator', token(lexer.OPERATOR, S('+-/*%^!=&|?:;,.()[]{}<>'))) -- Fold points. 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_consecutive_lines('//')) return lex |