]> Cypherpunks repositories - gostls13.git/commit
misc/emacs: do not highlight built-in function if not followed by '('
authorRui Ueyama <ruiu@google.com>
Thu, 27 Mar 2014 21:35:07 +0000 (17:35 -0400)
committerAlan Donovan <adonovan@google.com>
Thu, 27 Mar 2014 21:35:07 +0000 (17:35 -0400)
commit5f5e280e14efde7c576c282fc7ee3a2c734eb8c5
tree357688e896173142ad89dc830b4aec65b12635fc
parent0f82cfd3f0ef84b553cd0f1e8cd578b3c29ea5d9
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
misc/emacs/go-mode.el