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. --- doc/LPegLexer.html | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'doc/LPegLexer.html') diff --git a/doc/LPegLexer.html b/doc/LPegLexer.html index 2926ae13b..569b76925 100644 --- a/doc/LPegLexer.html +++ b/doc/LPegLexer.html @@ -1606,14 +1606,14 @@ operator 30 -

+

-

lexer.fold_line_comments (boolean)

+

lexer.fold_line_groups (boolean)

-

Whether or not to fold multiple, consecutive line comments and only show - the top-level comment. +

Whether or not to fold multiple, consecutive line groups (such as line + comments or import statements) and only show the top line. This option is disabled by default. - This is an alias for lexer.property['fold.line.comments'] = '1|0'.

+ This is an alias for lexer.property['fold.line.groups'] = '1|0'.

@@ -1928,27 +1928,26 @@ operator 30 -

+

-

lexer.fold_line_comments (prefix)

+

lexer.fold_consecutive_lines (prefix)

-

Returns a fold function (to be passed to lexer.add_fold_point()) that folds - consecutive line comments that start with string prefix.

+

Returns for lexer.add_fold_point() the parameters needed to fold + consecutive lines that start with string prefix.

Parameters:

Usage:

-- cgit v1.2.3