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:
parent
fa3d86ca39
commit
2b3508425e
@ -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*\>"
|
||||||
|
Loading…
Reference in New Issue
Block a user