Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107959 - inaccurate vim syntax file gentoo-package-use.vim in ebuild app-vim/gentoo-syntax
Summary: inaccurate vim syntax file gentoo-package-use.vim in ebuild app-vim/gentoo-sy...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Lowest minor (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-10-02 23:51 UTC by timbrain
Modified: 2005-12-21 13:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
This diff file demonstrates problem location and solution. (solution.patch,734 bytes, patch)
2005-10-02 23:56 UTC, timbrain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description timbrain 2005-10-02 23:51:28 UTC
Vim syntax file /usr/share/vim/vimfiles/syntax/gentoo-package-use.vim from
ebuild app-vim/gentoo-syntax contains bad definition of USE flag and displays
colours incorrectly.

Reproducible: Always
Steps to Reproduce:
1. emerge vim gentoo-syntax
2. mkdir -p /etc/portage
3. touch /etc/portage/package.use
4. vim /etc/portage/package.use
5. On an empty line enter: "x11-base/xorg-x11 doc -ipv6 -3dfx"
   or:                     "x11-base/xorg-x11 doc -ipv6 3dfx"

Actual Results:  
"x11-base/xorg-x11 doc -ipv6" is highlighted well.
"-3dfx" and/or "3dfx" remain white, because both flags start with number (0-9).

Expected Results:  
"-3dfx" and/or "3dfx" should be properly highlighted as valid USE flags.

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12.5 i686)
=================================================================
System uname: 2.6.12.5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.1.3-r1, 2.3.5-r2
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://gentoo.inode.at/source/"
LINGUAS="cs en sk"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d alsa apm arts avi berkdb bigger-fonts bitmap-fonts
browserplugin bzip2 chroot clamav crypt cscope cups curl dga divx4linux eds elf
emboss encode fam fbcon font-server foomaticdb fpx gcj gd gdbm gif gpm graphviz
gstreamer gtk gtk2 i8x0 imagemagick imap imlib ipv6 java jbig jce jpeg jpeg2k
junit kde kdeenablefinal lcms ldap libcaca libg++ libwww lm_sensors lua lzo mad
mikmod ming mmx motif mp3 mpeg multislot ncurses nls nntp nptl nptlonly objc ogg
oggvorbis opengl pam pdflib perl png ppds python qt quicktime readline real rpm
rtc samba sasl sdl slang slp smux speex spell sse sse2 ssl sysvipc tcpd tga
theora tidy tiff truetype truetype-fonts type1-fonts ucs2 unicode vanilla vorbis
win32codecs wmf x-truetype x86 xml xml2 xmms xpm xv xvid zlib linguas_cs
linguas_en linguas_sk userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 timbrain 2005-10-02 23:56:55 UTC
Created attachment 69769 [details, diff]
This diff file demonstrates problem location and solution.

This is not professional diff file (I'm not an experienced developer). Main
purpose is to show how to solve this little inconvenience.
Comment 2 Ciaran McCreesh 2005-12-21 13:57:38 UTC
20051221.