From 4b85e2df2e085f71af63487691cd58e344c21f9f Mon Sep 17 00:00:00 2001 From: Romeo Van Snick Date: Thu, 31 Oct 2019 18:01:52 +0100 Subject: [PATCH] Add syntax support for binary literals --- syntax/go.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syntax/go.vim b/syntax/go.vim index bbcd7a4bde..dc69ceeb77 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -166,11 +166,15 @@ syn match goDecimalInt "\<-\=\d\+\%([Ee][-+]\=\d\+\)\=\>" syn match goHexadecimalInt "\<-\=0[xX]\x\+\>" syn match goOctalInt "\<-\=0\o\+\>" syn match goOctalError "\<-\=0\o*[89]\d*\>" +syn match goBinaryInt "\<-\=0[bB][01]\+\>" +syn match goBinaryError "\<-\=0[bB][01]*[2-9]\+[01]*\>" hi def link goDecimalInt Integer hi def link goHexadecimalInt Integer hi def link goOctalInt Integer hi def link goOctalError Error +hi def link goBinaryInt Integer +hi def link goBinaryError Error hi def link Integer Number " Floating point