1
0
mirror of https://github.com/golang/go synced 2024-11-23 08:30:05 -07:00

misc/emacs: don't treat (foo)(bar) as a function call when preceded by a word character.

Fixes #6531.

R=adonovan
CC=golang-dev
https://golang.org/cl/14523043
This commit is contained in:
Dominik Honnef 2013-10-10 16:30:20 -04:00 committed by Alan Donovan
parent 649fc255a9
commit 47bb44fd5b

View File

@ -249,7 +249,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
`(