From e3837bce23c190ea1ba1c9eeb727da4afd3735c7 Mon Sep 17 00:00:00 2001 From: Billie Cleek Date: Sun, 3 Sep 2023 12:22:42 -0700 Subject: [PATCH] syntax: add new builtins Add support for the functions that Go 1.21 added to the language specification: clear, min, and max. --- syntax/go.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/go.vim b/syntax/go.vim index 2bc14c84d5..ecbc80b11a 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -47,8 +47,8 @@ hi def link goFloats Type hi def link goComplexes Type " Predefined functions and values -syn keyword goBuiltins append cap close complex copy delete imag len -syn keyword goBuiltins make new panic print println real recover +syn keyword goBuiltins append cap clear close complex copy delete imag len +syn keyword goBuiltins make min max new panic print println real recover syn keyword goBoolean true false syn keyword goPredefinedIdentifiers nil iota