From: Petar Maymounkov Date: Fri, 23 Jul 2010 01:33:17 +0000 (+1000) Subject: misc/vim: updated syntax file to recognize constants of the form 1e9 X-Git-Tag: weekly.2010-07-29~47 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2b3508425e5aa94851958ded12f1153456209f8f;p=gostls13.git misc/vim: updated syntax file to recognize constants of the form 1e9 R=rsc, adg CC=golang-dev https://golang.org/cl/1864042 --- diff --git a/misc/vim/syntax/go.vim b/misc/vim/syntax/go.vim index 244503ca30..d01f2e4e94 100644 --- a/misc/vim/syntax/go.vim +++ b/misc/vim/syntax/go.vim @@ -136,7 +136,7 @@ syn region goBlock start="{" end="}" transparent fold syn region goParen start='(' end=')' transparent " Integers -syn match goDecimalInt "\<\d\+\>" +syn match goDecimalInt "\<\d\+\([Ee]\d\+\)\?\>" syn match goHexadecimalInt "\<0x\x\+\>" syn match goOctalInt "\<0\o\+\>" syn match goOctalError "\<0\o*[89]\d*\>"