From e9ba9470bc0c7042e2e5aac6838aa86f2f514ca3 Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Wed, 12 Mar 2014 11:02:42 -0400 Subject: [PATCH] misc/emacs: correctly fontify methods when go-fontify-function-calls is nil We were fontifying the wrong part of method declarations LGTM=adonovan R=adonovan CC=golang-codereviews https://golang.org/cl/66120043 --- 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 e19dcdcde8c..c55d83ac6a4 100644 --- a/misc/emacs/go-mode.el +++ b/misc/emacs/go-mode.el @@ -269,7 +269,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 "[^[: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 + `((,go-func-meth-regexp 2 font-lock-function-name-face))) ;; method name `( (,(concat (go--regexp-enclose-in-symbol "type") "[[:space:]]+\\([^[:space:]]+\\)") 1 font-lock-type-face) ;; types