" Maintainer: Jacob Nevins <jacobn+vim@chiark.greenend.org.uk>
" URL: http://www.chiark.greenend.org.uk/~sgtatham/halibut/
" Filenames: *.but
-" Version: $Id: halibut.vim,v 1.7 2004/04/01 23:21:28 jtn Exp $
+" Version: $Id: halibut.vim,v 1.8 2004/04/01 23:41:38 jtn Exp $
" I've never been entirely comfortable with vim's syntax highlighting
" facilities, so this may have all sorts of nasty loose ends, corner cases
" Based on docs in Halibut CVS 2004-03-31
+" FIXME:
+" - sync - last blank line, \quote, \lcont
+" - add "display" etc for speed?
+
" Rune from vim 6.1 help
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
" (matches current iscmd() in input.c; there are some oddballs which
" don't fit this handled specially below)
syn match butCmdGeneric "\\[A-Za-z0-9]\+" nextgroup=butTextArg
-" was: [A-Za-z0-9#]\+
syn cluster butText contains=butLiteral,@butCmd,butTodo
" ...and overall title
syn match butCmdSpecific "\\title\_s\@=" nextgroup=butTextHeading
-" Bulleted lists
-syn match butCmdSpecific "\\\(b\|n\|dd\)" nextgroup=butIdentArg
+" Bulleted lists -- arguments optional
+syn match butCmdSpecific "\\\(b\|n\|dd\)[^A-Za-z0-9]\@=" nextgroup=butIdentArg
" Config
syn match butCmdSpecific "\\cfg{\@=" nextgroup=butCfgArg