From d15651463ab5c3dd6609e548527a8ea18ab80c98 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 15 Nov 2019 17:27:14 +0100 Subject: Update --- syntax/go.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'syntax/go.vim') 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*\>" -- cgit v1.2.3