summaryrefslogtreecommitdiffstats
path: root/syntax/go.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-06-01 18:17:40 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2021-06-01 18:17:40 +0200
commitaf0eaee01737d26314c9c3618153e99d1eb3e2f1 (patch)
treee45903bbc85886dcb6568c1f3c3f867b2649f2ca /syntax/go.vim
parent730dcb02caab60a6ae5d8b4bdc16d290041061ec (diff)
downloadvim-polyglot-af0eaee01737d26314c9c3618153e99d1eb3e2f1.tar.gz
vim-polyglot-af0eaee01737d26314c9c3618153e99d1eb3e2f1.zip
Update
Diffstat (limited to 'syntax/go.vim')
-rw-r--r--syntax/go.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax/go.vim b/syntax/go.vim
index 4630f0eb..ecb94127 100644
--- a/syntax/go.vim
+++ b/syntax/go.vim
@@ -169,11 +169,11 @@ syn match goSingleDecl /\%(import\|var\|const\) [^(]\@=/ contains=g
syn match goDecimalInt "\<-\=\(0\|[1-9]_\?\(\d\|\d\+_\?\d\+\)*\)\%([Ee][-+]\=\d\+\)\=\>"
syn match goDecimalError "\<-\=\(_\(\d\+_*\)\+\|\([1-9]\d*_*\)\+__\(\d\+_*\)\+\|\([1-9]\d*_*\)\+_\+\)\%([Ee][-+]\=\d\+\)\=\>"
syn match goHexadecimalInt "\<-\=0[xX]_\?\(\x\+_\?\)\+\>"
-syn match goHexadecimalError "\<-\=0[xX]_\?\(\x\+_\?\)*\(\([^ \t0-9A-Fa-f_]\|__\)\S*\|_\)\>"
+syn match goHexadecimalError "\<-\=0[xX]_\?\(\x\+_\?\)*\(\([^ \t0-9A-Fa-f_)]\|__\)\S*\|_\)\>"
syn match goOctalInt "\<-\=0[oO]\?_\?\(\o\+_\?\)\+\>"
syn match goOctalError "\<-\=0[0-7oO_]*\(\([^ \t0-7oOxX_/)\]\}\:]\|[oO]\{2,\}\|__\)\S*\|_\|[oOxX]\)\>"
syn match goBinaryInt "\<-\=0[bB]_\?\([01]\+_\?\)\+\>"
-syn match goBinaryError "\<-\=0[bB]_\?[01_]*\([^ \t01_]\S*\|__\S*\|_\)\>"
+syn match goBinaryError "\<-\=0[bB]_\?[01_]*\([^ \t01_)]\S*\|__\S*\|_\)\>"
hi def link goDecimalInt Integer
hi def link goDecimalError Error