Bug#473660: [vim-runtime] perl indentation does not work when folding of block is enabled
Gregory Hainaut
gregory.hainaut at gmail.com
Mon Mar 31 21:41:13 UTC 2008
Package: vim
Version: 1:7.1.285-1
Severity: normal
Tags: patch
The activation of bock folding in PERL (let perl_fold = 1 ) disable the
indentation in block folded. I attach a small patch to fix the problem.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.23.16-cfs-v24.1-ghost (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages vim depends on:
ii libacl1 2.2.45-1 Access control list shared library
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libgpmg1 1.20.3~pre3-3 General Purpose Mouse - shared lib
ii libncurses5 5.6+20080308-1 Shared libraries for terminal hand
ii vim-common 1:7.1.285-1 Vi IMproved - Common files
ii vim-runtime 1:7.1.285-1 Vi IMproved - Runtime files
vim recommends no packages.
-- no debconf information
-------------- next part --------------
--- /usr/share/vim/vim71/indent/perl.vim 2008-02-27 18:31:48.000000000 +0100
+++ perl.vim 2008-03-29 18:50:14.000000000 +0100
@@ -133,7 +133,7 @@
\ || synid == "perlMatchStartEnd"
\ || synid == "perlHereDoc"
\ || synid =~ "^perlFiledescStatement"
- \ || synid =~ '^perl\(Sub\|BEGINEND\|If\)Fold'
+ \ || synid =~ '^perl\(Sub\|BEGINEND\|Block\|If\)Fold'
let brace = strpart(line, bracepos, 1)
if brace == '(' || brace == '{'
let ind = ind + &sw
@@ -148,7 +148,7 @@
let synid = synIDattr(synID(v:lnum, bracepos, 0), "name")
if synid == ""
\ || synid == "perlMatchStartEnd"
- \ || synid =~ '^perl\(Sub\|BEGINEND\|If\)Fold'
+ \ || synid =~ '^perl\(Sub\|BEGINEND\|Block\|If\)Fold'
let ind = ind - &sw
endif
endif
More information about the pkg-vim-maintainers
mailing list