diff options
Diffstat (limited to 'syntax/go.vim')
-rw-r--r-- | syntax/go.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax/go.vim b/syntax/go.vim index 1d1cce13..2f97813d 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -164,11 +164,11 @@ endif syn match goSingleDecl /\%(import\|var\|const\) [^(]\@=/ contains=goImport,goVar,goConst " Integers -syn match goDecimalInt "\<-\=\d\+\%([Ee][-+]\=\d\+\)\=\>" +syn match goDecimalInt "\<-\=\(0\|[1-9]\d*\)\%([Ee][-+]\=\d\+\)\=\>" syn match goHexadecimalInt "\<-\=0[xX]\x\+\>" syn match goHexadecimalError "\<-\=0[xX]\x*[^ \t0-9A-Fa-f]\S*\>" syn match goOctalInt "\<-\=0\o\+\>" -syn match goOctalError "\<-\=0[^XxBb]\o*[^ \t0-7]\S*\>" +syn match goOctalError "\<-\=0[XxBb\]]\@!\o*[^ \t0-7]\S*\>" syn match goBinaryInt "\<-\=0[bB][01]\+\>" syn match goBinaryError "\<-\=0[bB][01]*[^ \t01]\S*\>" |