mirror of
https://github.com/golang/go
synced 2024-11-23 05:10:09 -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:
parent
649fc255a9
commit
47bb44fd5b
@ -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
|
||||
|
||||
`(
|
||||
|
Loading…
Reference in New Issue
Block a user