<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>107959</bug_id>
          
          <creation_ts>2005-10-02 23:51 0000</creation_ts>
          <short_desc>inaccurate vim syntax file gentoo-package-use.vim in ebuild app-vim/gentoo-syntax</short_desc>
          <delta_ts>2005-12-21 13:57:38 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>InCVS</keywords>
          <priority>P5</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>timbrain@post.cz</reporter>
          <assigned_to>vim@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>timbrain@post.cz</who>
            <bug_when>2005-10-02 23:51:28 0000</bug_when>
            <thetext>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: &quot;x11-base/xorg-x11 doc -ipv6 -3dfx&quot;
   or:                     &quot;x11-base/xorg-x11 doc -ipv6 3dfx&quot;

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

Expected Results:  
&quot;-3dfx&quot; and/or &quot;3dfx&quot; 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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -pipe -march=pentium4 -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -pipe -march=pentium4 -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;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/&quot;
LINGUAS=&quot;cs en sk&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>timbrain@post.cz</who>
            <bug_when>2005-10-02 23:56:55 0000</bug_when>
            <thetext>Created an attachment (id=69769)
This diff file demonstrates problem location and solution.

This is not professional diff file (I&apos;m not an experienced developer). Main
purpose is to show how to solve this little inconvenience.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ciaran.mccreesh@googlemail.com</who>
            <bug_when>2005-12-21 13:57:38 0000</bug_when>
            <thetext>20051221.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>69769</attachid>
            <date>2005-10-02 23:56 0000</date>
            <desc>This diff file demonstrates problem location and solution.</desc>
            <filename>solution.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3Ivc2hhcmUvdmltL3ZpbWZpbGVzL3N5bnRheC9nZW50b28tcGFja2FnZS11c2Uudmlt
CTIwMDUtMTAtMDMgMDg6NDI6NDYuODEzMzMwMjcyICswMjAwCisrKyBnZW50b28tcGFja2FnZS11
c2UudmltLm5ldwkyMDA1LTEwLTAzIDA3OjU0OjM1LjkyMDI4Nzc4MSArMDIwMApAQCAtMjcsNyAr
MjcsNyBAQAogc3luIG1hdGNoICBHZW50b29QYWNrYWdlVXNlQXRvbSAvXlteIFx0XG4jXVwrLVxT
XCtcL1xTXCsvCiAJICAgIFwgbmV4dGdyb3VwPUdlbnRvb1BhY2thZ2VVc2VVc2UsR2VudG9vUGFj
a2FnZVVzZVVudXNlIHNraXB3aGl0ZQotc3luIG1hdGNoICBHZW50b29QYWNrYWdlVXNlVXNlIGNv
bnRhaW5lZCAvW2EtekEtWl1bYS16QS1aMC05XC1fXSovCitzeW4gbWF0Y2ggIEdlbnRvb1BhY2th
Z2VVc2VVc2UgY29udGFpbmVkIC9bYS16QS1aMC05XVthLXpBLVowLTlcLV9dKi8KIAkgICAgXCBu
ZXh0Z3JvdXA9R2VudG9vUGFja2FnZVVzZVVzZSxHZW50b29QYWNrYWdlVXNlVW51c2Ugc2tpcHdo
aXRlCi1zeW4gbWF0Y2ggIEdlbnRvb1BhY2thZ2VVc2VVbnVzZSBjb250YWluZWQgLy1bYS16QS1a
XVthLXpBLVowLTlcLV9dKi8KK3N5biBtYXRjaCAgR2VudG9vUGFja2FnZVVzZVVudXNlIGNvbnRh
aW5lZCAvLVthLXpBLVowLTldW2EtekEtWjAtOVwtX10qLwogCSAgICBcIG5leHRncm91cD1HZW50
b29QYWNrYWdlVXNlVXNlLEdlbnRvb1BhY2thZ2VVc2VVbnVzZSBza2lwd2hpdGUKIAo=
</data>        

          </attachment>
    </bug>

</bugzilla>