[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (G)Vim Oddity



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

Heimdall Midgard wrote:
> I just noticed something weird with my (G)Vim installation
> when editing generic config files. The syntax highlighting
> colors appear wrong. Could somebody do a test to confirm if
> this is really a bug or just a misconfiguration on my end?

this isn't a generic configuration file this is a snort
configuration file, go figure what its syntax is.

:set filetype?
yielded filetype=hog, /usr/share/vim/vim63/syntax/hog.vim says:

" Snort syntax file
" Language:       Snort Configuration File (see: http://www.snort.org)
" Maintainer:     Phil Wood, cornett@arpa.net
" Last Change:    $Date: 2001/05/23 19:48:42 $
" Filenames:      *.hog *.rules snort.conf vision.conf

> To do the test, create two files both named "udev.rules"
> (perhaps in two different directories to avoid any
> collision).
> 
> Put the following lines (with no blank lines above, below or
> between them) in the first file:
> 
> # Line 1 is a comment colored Blue
> # Line 2 is a comment colored Blue
> Line 3 is not a comment, so is colored Black
> # Line 4 is a comment but colored Black
> 
> And put the following lines (again with not blank lines
> abover, below or between them) in the second file:
> 
> # Line 1 is a comment colored Blue
> # Line 2 is a comment colored Blue
> Line 3 is not a comment, so is colored Black ()
> # Line 4 is a comment now colored Blue
> 
> Now open the file in GVim. The dummy text of the two files
> should explain the problem. GVim displays the text in the
> colors I listed for each line. The colors for console-mode
> Vim should differ slightly but should display the same
> pattern.
> 
> Note how addition of a pair of parentheses to Line 3 of the
> second file "causes" Line 4 to be displayed in the right
> "comment" color.
> 
> --
> Albert Einstein: Phantasie ist wichtiger als Wissen, denn
> Wissen ist begrenzt.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3-cvs (MingW32)
Comment: GnuPT-Light 0.5
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDp8LSEpWP9DofOAQRAmChAKCzV9MQMKl1gP1aTxldbGR5i5UjpwCgu2Ci
+r7H3L/hOUhzudjo3I8GHCw=
=9QEn
-----END PGP SIGNATURE-----



Reply to: