1
0
mirror of https://github.com/golang/go synced 2024-11-21 18:44:45 -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
" 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*\>"