diff runtime/indent/perl.vim @ 33213:d84610677553

runtime(perl): Update ftplugin and indent files (#13052) Commit: https://github.com/vim/vim/commit/4e554d282c50e428932df5fff9917f8a836f7782 Author: dkearns <dougkearns@gmail.com> Date: Sat Sep 9 03:16:03 2023 +1000 runtime(perl): Update ftplugin and indent files (https://github.com/vim/vim/issues/13052) Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 08 Sep 2023 19:30:05 +0200
parents 1e9e9d89f0ee
children
line wrap: on
line diff
--- a/runtime/indent/perl.vim
+++ b/runtime/indent/perl.vim
@@ -4,7 +4,7 @@
 " Homepage:      https://github.com/vim-perl/vim-perl
 " Bugs/requests: https://github.com/vim-perl/vim-perl/issues
 " License:       Vim License (see :help license)
-" Last Change:   2021 Sep 24
+" Last Change:   2022 Jun 14
 
 " Suggestions and improvements by :
 "   Aaron J. Sherman (use syntax for hints)
@@ -133,6 +133,7 @@ function! GetPerlIndent()
                         \ || synid == "perlHereDoc"
                         \ || synid == "perlBraces"
                         \ || synid == "perlStatementIndirObj"
+                        \ || synid == "perlSubDeclaration"
                         \ || synid =~ "^perlFiledescStatement"
                         \ || synid =~ '^perl\(Sub\|Block\|Package\)Fold'
                 let brace = strpart(line, bracepos, 1)