sh.vim bugfix
jamessan@jamessan.com
jamessan@jamessan.com
Wed, 23 Mar 2005 21:11:54 -0500
--Y5rl02BVI9TCfPar
Content-Type: multipart/mixed; boundary="gatW/ieO32f1wygP"
Content-Disposition: inline
--gatW/ieO32f1wygP
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Chip,
I'm a member of the maintainer group for Debian's Vim package. Attached
is a patch for sh.vim to address the bug reported in
<http://bugs.debian.org/269325>.
James
--=20
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan@jamessan.com>
--gatW/ieO32f1wygP
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="116_sh.vim.diff"
diff -ur vim63.orig/runtime/syntax/sh.vim vim63/runtime/syntax/sh.vim
--- vim63.orig/runtime/syntax/sh.vim 2005-03-23 21:03:05.310620048 -0500
+++ vim63/runtime/syntax/sh.vim 2005-03-23 21:04:21.192084312 -0500
@@ -161,7 +161,7 @@
" ====
syn match shCaseBar contained skipwhite "[^|"`'()]\{-}|"hs=e nextgroup=shCase,shCaseStart,shCaseBar,shComment,shCaseSingleQuote,shCaseDoubleQuote
syn match shCaseStart contained skipwhite skipnl "(" nextgroup=shCase,shCaseBar
-syn region shCase contained skipwhite skipnl matchgroup=shSnglCase start="[^$()]\{-})"ms=s,hs=e end=";;" end="esac"me=s-1 contains=@shCaseList nextgroup=shCaseStart,shCase,,shComment
+syn region shCase contained skipwhite skipnl matchgroup=shSnglCase start="[^#$()]\{-})"ms=s,hs=e end=";;" end="esac"me=s-1 contains=@shCaseList nextgroup=shCaseStart,shCase,,shComment
syn region shCaseEsac matchgroup=shConditional start="\<case\>" end="\<esac\>" contains=@shCaseEsacList
syn keyword shCaseIn contained skipwhite skipnl in nextgroup=shCase,shCaseStart,shCaseBar,shComment,shCaseSingleQuote,shCaseDoubleQuote
syn region shCaseSingleQuote matchgroup=shOperator start=+'+ skip=+\\\\\|\\.+ end=+'+ contains=shStringSpecial skipwhite skipnl nextgroup=shCaseBar contained
--gatW/ieO32f1wygP--
--Y5rl02BVI9TCfPar
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iEYEARECAAYFAkJCIeoACgkQDb3UpmEybUBDcgCfSKzVUmQDKaThi/v8KI1rtObL
R2YAn3OdQc/r4IhI9fznBn24RizBbifd
=sAZp
-----END PGP SIGNATURE-----
--Y5rl02BVI9TCfPar--