fix in the php vim indent plugin
Pierre Habouzit
pierre.habouzit@m4x.org
Mon, 21 Mar 2005 13:52:55 +0100
--nextPart1326221.0LQW92RMA6
Content-Type: multipart/mixed;
boundary="Boundary-01=_nOsPCrpb9fyPEFr"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--Boundary-01=_nOsPCrpb9fyPEFr
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
A user (and in fact I was experiencing the same problems) reported a=20
broken php indent.
I join the patch that fix the problem attached to my mail.
Cheers,
=2D-=20
=B7O=B7 Pierre Habouzit
=B7=B7O
OOO http://www.madism.org
--Boundary-01=_nOsPCrpb9fyPEFr
Content-Type: text/x-diff;
charset="iso-8859-1";
name="110_php.vim.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="110_php.vim.diff"
diff -Nrua vim63.orig/runtime/indent/php.vim vim63/runtime/indent/php.vim
--- vim63.orig/runtime/indent/php.vim 2005-03-15 10:18:48.000000000 +0100
+++ vim63/runtime/indent/php.vim 2005-03-21 13:45:54.962543157 +0100
@@ -79,9 +79,7 @@
" to the indent of the matching line.
if cline =~ '^\s*}'
call cursor(line('.'), 1)
- let ind = indent(searchpair('{', '', '}',
- 'bW', 'synIDattr(synID(line("."), col("."),
- 0), "name") =~? "string"'))
+ let ind = indent(searchpair('{', '', '}','bW', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string"'))
return ind
endif
" Try to indent switch/case statements as well
--Boundary-01=_nOsPCrpb9fyPEFr--
--nextPart1326221.0LQW92RMA6
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQBCPsOnvGr7W6HudhwRAprOAJ9+6v5kSzfuY8lAUU9lkE88RztDZACfRqzD
6Iv5ZrPF0xF4XKE0qSV/5lw=
=CfcP
-----END PGP SIGNATURE-----
--nextPart1326221.0LQW92RMA6--