aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Honnef <dominik.honnef@gmail.com>2013-10-10 16:30:20 -0400
committerAlan Donovan <adonovan@google.com>2013-10-10 16:30:20 -0400
commit47bb44fd5bee504cd53e1e9e1d1c36e28a15e94f (patch)
tree6be8a170573688788807142685d437a0818762bc
parent649fc255a9c7b6e05249dbde1176aecd17135cc3 (diff)
downloadgo-47bb44fd5bee504cd53e1e9e1d1c36e28a15e94f.tar.gz
go-47bb44fd5bee504cd53e1e9e1d1c36e28a15e94f.zip
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
-rw-r--r--misc/emacs/go-mode.el2
1 files changed, 1 insertions, 1 deletions
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
`(