From 47bb44fd5bee504cd53e1e9e1d1c36e28a15e94f Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Thu, 10 Oct 2013 16:30:20 -0400 Subject: [PATCH] misc/emacs: don't treat (foo)(bar) as a function call when preceded by a word character. Fixes #6531. R=adonovan CC=golang-dev https://golang.org/cl/14523043 --- misc/emacs/go-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el index 349b372ecf..1f35f7c0b4 100644 --- a/misc/emacs/go-mode.el +++ b/misc/emacs/go-mode.el @@ -249,7 +249,7 @@ For mode=set, all covered lines will have this weight." (if go-fontify-function-calls `((,(concat "\\(" go-identifier-regexp "\\)[[:space:]]*(") 1 font-lock-function-name-face) ;; function call/method name - (,(concat "(\\(" go-identifier-regexp "\\))[[:space:]]*(") 1 font-lock-function-name-face)) ;; bracketed function call + (,(concat "[^[:word:][:multibyte:]](\\(" go-identifier-regexp "\\))[[:space:]]*(") 1 font-lock-function-name-face)) ;; bracketed function call `((,go-func-meth-regexp 1 font-lock-function-name-face))) ;; method name `(