emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode f664cff 197/495: correctly fontify methods when go


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode f664cff 197/495: correctly fontify methods when go-fontify-function-calls is nil
Date: Sat, 7 Aug 2021 09:05:12 -0400 (EDT)

branch: elpa/go-mode
commit f664cffa2938ff3fa344b994f5723bf15d07f381
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    correctly fontify methods when go-fontify-function-calls is nil
---
 go-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index a1b6057..4704e41 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -278,7 +278,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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]