syntax/xml.vim fix
Pierre Habouzit
pierre.habouzit@m4x.org
Tue, 22 Mar 2005 13:38:48 +0100
--nextPart1508936.fpxDCyUcQt
Content-Type: multipart/mixed;
boundary="Boundary-01=_YHBQCkMXK9cTWzo"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--Boundary-01=_YHBQCkMXK9cTWzo
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi, I'm part of the debian vim packagers, and there is a little glitch =20
in the xml syntax file (http://bugs.debian.org/196001)
according to the xml spec, even in attributes values, backslash has no=20
special meaning.
eg :
<foo attr=3D"\" attr2=3D"bar">bar</foo>
is correct, and is well escaped.
Here is a patch that corrects the xml.vim file.
Cheers,
=2D-=20
=B7O=B7 Pierre Habouzit
=B7=B7O
OOO http://www.madism.org
--Boundary-01=_YHBQCkMXK9cTWzo
Content-Type: text/x-diff;
charset="iso-8859-1";
name="113_xml.vim.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="113_xml.vim.diff"
diff -Nrua vim63.orig/runtime/syntax/xml.vim vim63/runtime/syntax/xml.vim
=2D-- vim63.orig/runtime/syntax/xml.vim 2005-03-15 10:18:48.000000000 +0100
+++ vim63/runtime/syntax/xml.vim 2005-03-22 13:31:25.660806126 +0100
@@ -58,8 +58,8 @@
"
" <tag foo.attribute =3D "value">
" ^^^^^^^
=2Dsyn region xmlString contained start=3D+"+ skip=3D+\\\\\|\\"+ end=3D+"+=
contains=3DxmlEntity display
=2Dsyn region xmlString contained start=3D+'+ skip=3D+\\\\\|\\'+ end=3D+'+=
contains=3DxmlEntity display
+syn region xmlString contained start=3D+"+ contains=3DxmlEntity display
+syn region xmlString contained start=3D+'+ contains=3DxmlEntity display
=20
=20
" punctuation (within attributes) e.g. <tag xml:foo.attribute ...>
--Boundary-01=_YHBQCkMXK9cTWzo--
--nextPart1508936.fpxDCyUcQt
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQBCQBHYvGr7W6HudhwRAqe+AKCLePogPqXUn3RPWHdUFzJMW1D2XgCfWxQq
R1WoB7upXhwyPz/S/0U2dQY=
=Nz3Z
-----END PGP SIGNATURE-----
--nextPart1508936.fpxDCyUcQt--