Skip to content

Commit

Permalink
syntax: add new builtins
Browse files Browse the repository at this point in the history
Add support for the functions that Go 1.21 added to the language
specification: clear, min, and max.
  • Loading branch information
bhcleek committed Sep 3, 2023
1 parent ec8f05b commit e3837bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e3837bc

Please sign in to comment.