From: Dominik Honnef Date: Thu, 10 Oct 2013 20:30:20 +0000 (-0400) Subject: misc/emacs: don't treat (foo)(bar) as a function call when preceded by a word character. X-Git-Tag: go1.2rc2~41 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=47bb44fd5bee504cd53e1e9e1d1c36e28a15e94f;p=gostls13.git 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 --- 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 `(