1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:57:56 -07:00

misc/vim: updated syntax file to recognize constants of the form 1e9

R=rsc, adg
CC=golang-dev
https://golang.org/cl/1864042
This commit is contained in:
Petar Maymounkov 2010-07-23 11:33:17 +10:00 committed by Andrew Gerrand
parent fa3d86ca39
commit 2b3508425e

View File

@ -136,7 +136,7 @@ syn region goBlock start="{" end="}" transparent fold
syn region goParen start='(' end=')' transparent syn region goParen start='(' end=')' transparent
" Integers " Integers
syn match goDecimalInt "\<\d\+\>" syn match goDecimalInt "\<\d\+\([Ee]\d\+\)\?\>"
syn match goHexadecimalInt "\<0x\x\+\>" syn match goHexadecimalInt "\<0x\x\+\>"
syn match goOctalInt "\<0\o\+\>" syn match goOctalInt "\<0\o\+\>"
syn match goOctalError "\<0\o*[89]\d*\>" syn match goOctalError "\<0\o*[89]\d*\>"