aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/php.lua
diff options
context:
space:
mode:
authormitchell <unknown>2020-08-03 18:48:30 -0400
committermitchell <unknown>2020-08-03 18:48:30 -0400
commit7e647657b0f95a4756b8aa714b0b3e4295272b81 (patch)
treeaba57ef6f834d046fb0a0f19102418bf9f40652a /lexlua/php.lua
parent79621db631f816c375b91edd2491bfe4b0aee5fa (diff)
downloadscintilla-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/php.lua')
-rw-r--r--lexlua/php.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlua/php.lua b/lexlua/php.lua
index 07886f950..79a6b2fd8 100644
--- a/lexlua/php.lua
+++ b/lexlua/php.lua
@@ -67,8 +67,8 @@ lex:add_style('php_tag', lexer.styles.embedded)
-- Fold points.
lex:add_fold_point('php_tag', '<?', '?>')
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('#'))
lex:add_fold_point(lexer.OPERATOR, '{', '}')
lex:add_fold_point(lexer.OPERATOR, '(', ')')