Skip to content

Commit f21347a

Browse files
jrockwaydominikh
authored andcommitted
Add new Go 1.21 builtins
Closes: gh-419 [via git-merge-pr]
1 parent 166dfb1 commit f21347a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

go-mode.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ constant is changed.")
9797
(defconst go--case-or-default-regexp (concat "\\(" go--case-regexp "\\|" "[[:space:]]*default:\\)"))
9898

9999
(defconst go-builtins
100-
'("append" "cap" "close" "complex" "copy"
101-
"delete" "imag" "len" "make" "new"
102-
"panic" "print" "println" "real" "recover")
100+
'("append" "cap" "clear" "close" "complex"
101+
"copy" "delete" "imag" "len" "make"
102+
"max" "min" "new" "panic" "print"
103+
"println" "real" "recover")
103104
"All built-in functions in the Go language. Used for font locking.")
104105

105106
(defconst go-mode-keywords

0 commit comments

Comments
 (0)