Bug#628759: vim: Improve automake syntax highlighter

Guillem Jover guillem at debian.org
Wed Jun 1 07:14:40 UTC 2011


Package: vim
Version: 2:7.3.154+hg~74503f6ee649-2
Severity: wishlist
Tags: patch

Hi!

Attached a patch which should improve the current automake syntax
highlighter, and a test file which I used to verify the syntax before
and after. The comments therein refer to the seubsequent lines. There's
still one item I know of which is bogus, AM_LDADD should not be
recognized, and this tends to be a common mistake to make so it would
be nice to not highlight it as correct, but I don't know how to exclude
just that one, help with that would be really appreciated!

thanks,
guillem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vim-automake-syn.patch
Type: text/x-diff
Size: 4320 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20110601/8cd67b3a/attachment.patch>
-------------- next part --------------
# Correctly recgonized
AM_LDFLAGS =

# Correctly recgonized
foo_LDADD =
# FIXME: Invalidly recognized
AM_LDADD =
# Unrecognized
LDADD =

# Correctly recgonized
foo_SOURCES = a.c
# Urecognized +=
foo_SOURCES += b.c

# Correctly recgonized
SUBDIRS = aa
# Urecognized +=
SUBDIRS += bb

# Correctly recgonized
foo_LIBRARIES =
# Wrongly matched w/o _
fooLIBRARIES =

# Wrongly matched foo_LIST instead of foo_LISP
foo_LIST =
foo_LISP =

# Correctly recgonized
foo_CPPFLAGS =
# Unreceognized
foo_CFLAGS =
foo_CXXFLAGS =
foo_CCASFLAGS =
AM_RUNTESTDEFAULTFLAGS =
RUNTESTDEFAULTFLAGS =
AM_MAKEINFOFLAGS =
MAKEINFOFLAGS =
AM_MAKEFLAGS = -DFOO=1

# Correctly recgonized
AUTOMAKE_OPTIONS = aa
# Urecognized
ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS = --disable-checks

# Correctly recgonized
transform =

# Correctly recgonized
foo_LIBS =
if COND_A
var += true
else !COND
var += false
endif

# Unrecognized negated conditional
if !COND_B
var += false
endif


More information about the pkg-vim-maintainers mailing list