From: jacob Date: Thu, 1 Apr 2004 01:12:21 +0000 (+0000) Subject: Oops, appendices. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/116b7f38b11fec85341412bd57501030ec599228 Oops, appendices. git-svn-id: svn://svn.tartarus.org/sgt/halibut@4015 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/misc/halibut.vim b/misc/halibut.vim index b7aa259..984ac63 100644 --- a/misc/halibut.vim +++ b/misc/halibut.vim @@ -3,7 +3,7 @@ " Maintainer: Jacob Nevins " URL: FIXME " Filenames: *.but -" Version: $Id: halibut.vim,v 1.1 2004/04/01 01:02:43 jtn Exp $ +" Version: $Id: halibut.vim,v 1.2 2004/04/01 01:12:21 jtn Exp $ " I'm not proud of this. Every time I tangle with vim's syntax highlighting " I come away unsatisfied. Nevertheless, it seems to work. @@ -60,7 +60,7 @@ syn region butComment matchgroup=Comment start="\\#{" end="}" contains=butCommen syn region butCommentBrace start="{" end="}" contains=butCommentBrace,butTodo contained transparent " Section headings - a bit hairy. Order wrt rest of file is important. -syn match butCmdSpecific "\\\(S\d\|[CHSU]\)" nextgroup=butIdentArgH +syn match butCmdSpecific "\\\(S\d\|[CAHSU]\)" nextgroup=butIdentArgH " butIdentArgH -> butTextArgH? -> this, which highlights the rest of the para: syn region butTextHeading start="" end="^\s*$" contained contains=@butText " ...and overall title