Vim debsources.vim syntax file spell checking

Simon Ruderich simon at ruderich.org
Thu Apr 16 10:34:48 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm using Vim with your debsources.vim syntax file and spell
checking enabled all the time. But this highlights also parts of
the file as spelling errors which are commands/settings. Here is
a patch to fix this. Spell checking is now only done in comments.

diff --git a/runtime/syntax/debsources.vim b/runtime/syntax/debsources.vim
index 51a7c1a..c7775fa 100644
- --- a/runtime/syntax/debsources.vim
+++ b/runtime/syntax/debsources.vim
@@ -19,7 +19,7 @@ syn case match
 syn match debsourcesKeyword        /\(deb-src\|deb\|main\|contrib\|non-free\|restricted\|universe\|multiverse\)/
 
 " Match comments
- -syn match debsourcesComment        /#.*/
+syn match debsourcesComment        /#.*/ contains=@Spell
 
 " Match uri's
 syn match debsourcesUri            +\(http://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' 	<>"]\++

Thanks,
Simon

PS: I'm not subscribed to this list (used the email from
debsources.vim) please reply me directly.
- -- 
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x6115F804EFB33229
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAknnCcgACgkQYRX4BO+zMimKVwCcDeh5d0nWUxsRQ3aNDLwOpp9v
afgAnA93zTxQtMcjylmIYu2QoUUwYgjs
=2IWG
-----END PGP SIGNATURE-----



More information about the pkg-vim-maintainers mailing list