From: jacob Date: Wed, 28 Apr 2004 17:34:54 +0000 (+0000) Subject: Handle paragraph comments with no space (e.g. "\#waffle"), since these seem X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/c44dc6a4c9abc168d49575185d8b50004612aa59 Handle paragraph comments with no space (e.g. "\#waffle"), since these seem to be permitted (and are used in the PuTTY manual) git-svn-id: svn://svn.tartarus.org/sgt/halibut@4164 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/misc/halibut.vim b/misc/halibut.vim index 91d7e9a..bf62fe3 100644 --- a/misc/halibut.vim +++ b/misc/halibut.vim @@ -3,7 +3,7 @@ " Maintainer: Jacob Nevins " URL: http://www.chiark.greenend.org.uk/~sgtatham/halibut/ " Filenames: *.but -" Version: $Id: halibut.vim,v 1.9 2004/04/02 00:03:10 jtn Exp $ +" Version: $Id: halibut.vim,v 1.10 2004/04/28 17:34:54 jacob 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 @@ -60,7 +60,7 @@ syn region butQLEmph matchgroup=butCmdSpecific start="\\e\_s\@=" matchgroup=NO syn match butQLEmphInv "\S\@=[^bi]" contained " Paragraph level comment -- might need to come before inline comment. -syn region butCommentPara start="\\#\_s\@=" end="^\s*$" contains=butTodo +syn region butCommentPara start="\\#" end="^\s*$" contains=butTodo " Inline comments -- nested braces are honoured. syn region butComment matchgroup=Comment start="\\#{" skip="\\}" end="}" contains=butCommentBrace,butTodo