diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-11-15 17:27:14 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-11-15 17:27:14 +0100 |
commit | d15651463ab5c3dd6609e548527a8ea18ab80c98 (patch) | |
tree | d148d7d3f48beefe0d1b7864355ff54ea6b55f50 /syntax/go.vim | |
parent | 0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2 (diff) | |
download | vim-polyglot-4.1.1.tar.gz vim-polyglot-4.1.1.zip |
Updatev4.1.1
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*\>" |