Skip to content

Commit 1c18cc1

Browse files
committed
Add min and max built-in functions
1 parent 0afe7ef commit 1c18cc1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

syntax/go.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,9 @@ call s:HiConfig('goStructTypeField', ['go_highlight_struct_type_fields'], #{d
677677

678678
" Builtins {{{
679679

680-
syntax keyword goBuiltins append cap close complex copy delete imag len panic print println real recover skipwhite nextgroup=goFuncCallArgs
680+
" `make` and `new` are matched by `goMakeBuiltin` and `goNewBuiltin` so that the
681+
" paren block that follows can have custom highlighting for types
682+
syntax keyword goBuiltins append cap close complex copy delete imag len max min panic print println real recover skipwhite nextgroup=goFuncCallArgs
681683

682684
syntax keyword goMakeBuiltin make skipwhite nextgroup=goMakeBlock
683685
syntax region goMakeBlock matchgroup=goFuncCallParens start='(' end=')' contained contains=@goType,goMakeArguments,goComment

0 commit comments

Comments
 (0)