Handle paragraph comments with no space (e.g. "\#waffle"), since these seem
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 28 Apr 2004 17:34:54 +0000 (17:34 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 28 Apr 2004 17:34:54 +0000 (17:34 +0000)
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

misc/halibut.vim

index 91d7e9a..bf62fe3 100644 (file)
@@ -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.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