]> gitweb.factorcode.org Git - factor.git/commitdiff
vim: fix float syntax highlighting of "1."
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 29 May 2012 03:48:15 +0000 (20:48 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 29 May 2012 03:48:15 +0000 (20:48 -0700)
misc/vim/syntax/factor.vim

index c607472272f719143198a6b96adf49789d1be87b..0f9e396ac922595796fc2ed03ee4fb77ebd0bdf4 100644 (file)
@@ -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=/\<C{\>/ end=/\<}\>/ contains=@factorReal