summaryrefslogtreecommitdiffstats
path: root/syntax/go.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/go.vim')
-rw-r--r--syntax/go.vim15
1 files changed, 14 insertions, 1 deletions
diff --git a/syntax/go.vim b/syntax/go.vim
index 5a23f24f..1d1cce13 100644
--- a/syntax/go.vim
+++ b/syntax/go.vim
@@ -166,13 +166,19 @@ syn match goSingleDecl /\%(import\|var\|const\) [^(]\@=/ contains=g
" Integers
syn match goDecimalInt "\<-\=\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\o*[89]\d*\>"
+syn match goOctalError "\<-\=0[^XxBb]\o*[^ \t0-7]\S*\>"
+syn match goBinaryInt "\<-\=0[bB][01]\+\>"
+syn match goBinaryError "\<-\=0[bB][01]*[^ \t01]\S*\>"
hi def link goDecimalInt Integer
hi def link goHexadecimalInt Integer
+hi def link goHexadecimalError Error
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
@@ -384,6 +390,13 @@ hi def link goCoverageNormalText Comment
function! s:hi()
hi def link goSameId Search
+ hi def link goDiagnosticError SpellBad
+ hi def link goDiagnosticWarning SpellRare
+
+ hi def link goDeclsFzfKeyword Keyword
+ hi def link goDeclsFzfFunction Function
+ hi def link goDeclsFzfSpecialComment SpecialComment
+ hi def link goDeclsFzfComment Comment
" :GoCoverage commands
hi def goCoverageCovered ctermfg=green guifg=#A6E22E