From 78f7a8bc585b1b48a66dbdc32eb006923fecae7b Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Mon, 28 May 2012 20:48:15 -0700 Subject: [PATCH] vim: fix float syntax highlighting of "1." --- misc/vim/syntax/factor.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/vim/syntax/factor.vim b/misc/vim/syntax/factor.vim index c607472272..0f9e396ac9 100644 --- a/misc/vim/syntax/factor.vim +++ b/misc/vim/syntax/factor.vim @@ -69,7 +69,7 @@ syn cluster factorReal contains=factorInt,factorFloat,factorPosRatio,fa syn cluster factorNumber contains=@factorReal,factorComplex syn cluster factorNumErr contains=factorBinErr,factorHexErr,factorOctErr syn match factorInt /\<-\=[0-9]\([0-9,]*[0-9]\)\?\([eE][+-][0-9]\+\)\?\>/ -syn match factorFloat /\<-\=[0-9]\([0-9,]*[0-9]\)\?\.[0-9,]*[0-9]\+\([eE][+-][0-9]\+\)\?\>/ +syn match factorFloat /\<-\=[0-9]\([0-9,]*[0-9]\)\?\(\.\([0-9,]*[0-9]\+\([eE][+-][0-9]\+\)\?\)\?\)\?\>/ syn match factorPosRatio /\<+\=[0-9]\([0-9,]*[0-9]\)\?\(+[0-9]\([0-9,]*[0-9]\+\)\?\)\?\/-\=[0-9]\([0-9,]*[0-9]\+\)\?\.\?\>/ syn match factorNegRatio /\<\-[0-9]\([0-9,]*[0-9]\)\?\(\-[0-9]\([0-9,]*[0-9]\+\)\?\)\?\/-\=[0-9]\([0-9,]*[0-9]\+\)\?\.\?\>/ syn region factorComplex start=/\/ end=/\<}\>/ contains=@factorReal