From: jacob Date: Fri, 2 Apr 2004 00:03:10 +0000 (+0000) Subject: Limit unicode hex to 4 digits X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/ac415fbe4757e1f4baa1bf06edb33cde40b26b9f Limit unicode hex to 4 digits git-svn-id: svn://svn.tartarus.org/sgt/halibut@4036 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/misc/halibut.vim b/misc/halibut.vim index 42f6d14..91d7e9a 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.8 2004/04/01 23:41:38 jtn Exp $ +" Version: $Id: halibut.vim,v 1.9 2004/04/02 00:03:10 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 @@ -101,7 +101,7 @@ syn match butCmdSpecific "\\I{\@=" nextgroup=butIndexArg " Xref commands syn match butCmdSpecific "\\[kK]{\@=" nextgroup=butIdentArg " Unicode literal -- a bit special. -syn match butLiteral "\\u\x*" nextgroup=butTextArg +syn match butLiteral "\\u\x\{,4}" nextgroup=butTextArg " Command cluster. syn cluster butCmd contains=butCmdGeneric,butCmdSpecific,butComment,butQuoteLit,butQLEmph,butCommentPara,butLiteral