1
0
mirror of https://github.com/golang/go synced 2024-11-23 16:40:03 -07:00
go/misc/emacs
Rui Ueyama 5f5e280e14 misc/emacs: do not highlight built-in function if not followed by '('
Name of built-in function is not reserved word in Go, and you can
use it as variable name. "new" is often used as local variable, for
instance.

This patch is to apply font-lock-builtin-face only when built-in
function name is followed by '(', so that it doesn't highlight
non-function variable that happen to have the same name as built-in
function.

LGTM=dominik.honnef
R=golang-codereviews, dominik.honnef, adonovan
CC=golang-codereviews
https://golang.org/cl/79260043
2014-03-27 17:35:07 -04:00
..
go-mode-load.el misc/emacs: Greatly improve go-mode for Emacs. 2013-02-26 13:48:32 -05:00
go-mode.el misc/emacs: do not highlight built-in function if not followed by '(' 2014-03-27 17:35:07 -04:00