branch: elpa/go-mode
commit 49c885db795ae60c03076ee20ac3ce5384d53648
Author: Dominik Honnef <[email protected]>
Commit: Dominik Honnef <[email protected]>

    (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