From 89336a9155dd8121d2fb1652c395ffefe6c2274d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Alonso=20Abad?= Date: Fri, 29 Mar 2019 13:55:06 +0100 Subject: [PATCH] Perl5 support to fold POD blocks POD blocks (as defined with the =pod and =cut tags) should be foldable. This documentation format is excessively verbose and clutters the file when other sections are folded (especially after a "fold all" operation). --- extensions/perl/perl.language-configuration.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extensions/perl/perl.language-configuration.json b/extensions/perl/perl.language-configuration.json index 01b6a8a2823..6cf6295b798 100644 --- a/extensions/perl/perl.language-configuration.json +++ b/extensions/perl/perl.language-configuration.json @@ -22,5 +22,11 @@ ["\"", "\""], ["'", "'"], ["`", "`"] - ] + ], + "folding": { + "markers": { + "start": "^=pod\\s*$", + "end": "^=cut\\s*$" + } + } } \ No newline at end of file