mirror of
https://github.com/golang/go.git
synced 2025-05-19 22:33:25 +00: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
|
(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) ;; 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
|
`((,go-func-meth-regexp 1 font-lock-function-name-face))) ;; method name
|
||||||
|
|
||||||
`(
|
`(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user