From 7e647657b0f95a4756b8aa714b0b3e4295272b81 Mon Sep 17 00:00:00 2001 From: mitchell Date: Mon, 3 Aug 2020 18:48:30 -0400 Subject: lexlua: Deprecated `lexer.fold_line_comments()` in favor of `lexer.fold_consecutive_lines()`. Also use `lexer.fold_line_groups` for option that enables this folding, avoiding name clash that plagued the previous option. Added "import" folding for Java. --- lexlua/actionscript.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexlua/actionscript.lua') diff --git a/lexlua/actionscript.lua b/lexlua/actionscript.lua index 3202a9a01..937541053 100644 --- a/lexlua/actionscript.lua +++ b/lexlua/actionscript.lua @@ -52,7 +52,7 @@ 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('//')) lex:add_fold_point(lexer.STRING, '') return lex -- cgit v1.2.3