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

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

[nongnu] elpa/go-mode 49c885d 188/495: (foo)(bar) is not a function call


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 49c885d 188/495: (foo)(bar) is not a function call when there's a letter directly preceding it
Date: Sat, 7 Aug 2021 09:05:10 -0400 (EDT)

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

    (foo)(bar) is not a function call when there's a letter directly preceding 
it
---
 go-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index 9f67375..54b8ef3 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -258,7 +258,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
 
    `(



reply via email to

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