]> Cypherpunks repositories - gostls13.git/commitdiff
misc/vim: updated syntax file to recognize constants of the form 1e9
authorPetar Maymounkov <petarm@gmail.com>
Fri, 23 Jul 2010 01:33:17 +0000 (11:33 +1000)
committerAndrew Gerrand <adg@golang.org>
Fri, 23 Jul 2010 01:33:17 +0000 (11:33 +1000)
R=rsc, adg
CC=golang-dev
https://golang.org/cl/1864042

misc/vim/syntax/go.vim

index 244503ca302f4b46afd358f196553e402677a83d..d01f2e4e94a7d2875c82db591644f4d6ad3512a2 100644 (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*\>"