diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2004-04-01 23:41:38 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2004-04-01 23:41:38 +0000 |
| commit | fb74ebac57f7d14f658e4e48f982400bd6ac6f79 (patch) | |
| tree | 1828af2c877f655bc9ffb1eb05dd5a4c25703d7d | |
| parent | 1f51393b68a40e293ecabe8ebb3d5e1bc3524dd2 (diff) | |
| download | halibut-fb74ebac57f7d14f658e4e48f982400bd6ac6f79.zip halibut-fb74ebac57f7d14f658e4e48f982400bd6ac6f79.tar.gz halibut-fb74ebac57f7d14f658e4e48f982400bd6ac6f79.tar.bz2 halibut-fb74ebac57f7d14f658e4e48f982400bd6ac6f79.tar.xz | |
Stop \n clobbering \nocite (etc)
Comments
[originally from svn r4035]
| -rw-r--r-- | misc/halibut.vim | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/misc/halibut.vim b/misc/halibut.vim index d109ad7..42f6d14 100644 --- a/misc/halibut.vim +++ b/misc/halibut.vim @@ -3,7 +3,7 @@ " 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 @@ -12,6 +12,10 @@ " 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 @@ -35,7 +39,6 @@ syn match butIllegalChar "\\" " (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 @@ -72,8 +75,8 @@ syn match butCmdSpecific "\\U\_s\@=" nextgroup=butTextHeading " ...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 |