diff options
author | Dominik Honnef <dominik.honnef@gmail.com> | 2014-03-12 11:02:42 -0400 |
---|---|---|
committer | Dominik Honnef <dominik.honnef@gmail.com> | 2014-03-12 11:02:42 -0400 |
commit | 04ab6ffbe4afc622dc0f5096daf6fa16997672a7 (patch) | |
tree | 67c345905965d62f00dfe70f1fcf8be7b6e759b4 /misc | |
parent | 01db0f77f0ef9f65287f1e28c976c849925b4f5d (diff) | |
download | go-04ab6ffbe4afc622dc0f5096daf6fa16997672a7.tar.gz |
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://codereview.appspot.com/66120043
Committer: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/emacs/go-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el index e19dcdcde..c55d83ac6 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 |