Skip to content

Commit 002a5de

Browse files
authored
Merge pull request #2599 from mattn/fix-octal
Fix syntax for octal error
2 parents 6d9cabb + 583e2cc commit 002a5de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/go.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ syn match goDecimalError "\<-\=\(_\(\d\+_*\)\+\|\([1-9]\d*_*\)\+__\(\
167167
syn match goHexadecimalInt "\<-\=0[xX]_\?\(\x\+_\?\)\+\>"
168168
syn match goHexadecimalError "\<-\=0[xX]_\?\(\x\+_\?\)*\(\([^ \t0-9A-Fa-f_]\|__\)\S*\|_\)\>"
169169
syn match goOctalInt "\<-\=0[oO]\?_\?\(\o\+_\?\)\+\>"
170-
syn match goOctalError "\<-\=0[0-7oO_]*\(\([^ \t0-7oOxX_/\]\}\:]\|[oO]\{2,\}\|__\)\S*\|_\|[oOxX]\)\>"
170+
syn match goOctalError "\<-\=0[0-7oO_]*\(\([^ \t0-7oOxX_/)\]\}\:]\|[oO]\{2,\}\|__\)\S*\|_\|[oOxX]\)\>"
171171
syn match goBinaryInt "\<-\=0[bB]_\?\([01]\+_\?\)\+\>"
172172
syn match goBinaryError "\<-\=0[bB]_\?[01_]*\([^ \t01_]\S*\|__\S*\|_\)\>"
173173

0 commit comments

Comments
 (0)