diff options
author | Petar Maymounkov <petarm@gmail.com> | 2010-07-23 11:33:17 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2010-07-23 11:33:17 +1000 |
commit | 2b3508425e5aa94851958ded12f1153456209f8f (patch) | |
tree | aba3a877efe6f3e5819539a53246f04d64b861b1 | |
parent | fa3d86ca39f9d168f194b232538794bd09f887f3 (diff) | |
download | go-2b3508425e5aa94851958ded12f1153456209f8f.tar.gz go-2b3508425e5aa94851958ded12f1153456209f8f.zip |
misc/vim: updated syntax file to recognize constants of the form 1e9
R=rsc, adg
CC=golang-dev
https://golang.org/cl/1864042
-rw-r--r-- | misc/vim/syntax/go.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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*\>" |