diff options
| author | mitchell <unknown> | 2020-08-03 18:48:30 -0400 |
|---|---|---|
| committer | mitchell <unknown> | 2020-08-03 18:48:30 -0400 |
| commit | 7e647657b0f95a4756b8aa714b0b3e4295272b81 (patch) | |
| tree | aba57ef6f834d046fb0a0f19102418bf9f40652a /lexlua/xtend.lua | |
| parent | 79621db631f816c375b91edd2491bfe4b0aee5fa (diff) | |
| download | scintilla-mirror-7e647657b0f95a4756b8aa714b0b3e4295272b81.tar.gz | |
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.
Diffstat (limited to 'lexlua/xtend.lua')
| -rw-r--r-- | lexlua/xtend.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlua/xtend.lua b/lexlua/xtend.lua index f9a910f7d..c86bf7820 100644 --- a/lexlua/xtend.lua +++ b/lexlua/xtend.lua @@ -84,7 +84,7 @@ lex:add_rule('error', token(lexer.ERROR, lexer.any)) -- 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.KEYWORD, 'import', lexer.fold_line_comments('import')) +lex:add_fold_point(lexer.COMMENT, lexer.fold_consecutive_lines('//')) +lex:add_fold_point(lexer.KEYWORD, lexer.fold_consecutive_lines('import')) return lex |
