summaryrefslogtreecommitdiffstats
path: root/syntax/go.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-11-12 21:56:06 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-11-12 21:56:06 +0100
commit0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2 (patch)
tree5b5e45e53e9ecafa6c182c8ce7e0266e34388e4d /syntax/go.vim
parent4e95df7c7e12cb76e781f2dacf1c07f8984cce58 (diff)
downloadvim-polyglot-0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2.tar.gz
vim-polyglot-0c79dd3e73e8e09b73d4a5d20bf470a3f6f715f2.zip
Update
Diffstat (limited to '')
-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