aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/php.lua
diff options
context:
space:
mode:
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, '(', ')')