branch: elpa/go-mode
commit 5c1c546408bcf1f722e039786cbacb98061f228f
Author: Dominik Honnef <[email protected]>
Commit: Dominik Honnef <[email protected]>
Don't fontify parenthesis of multi-line type declaration
Closes gh-43
---
NEWS | 2 +-
go-mode.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/NEWS b/NEWS
index 110b606..0962419 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,6 @@
go-mode-1.4.0 (???)
- * Fix minor bug in fontification.
+ * Fix minor bugs in fontification.
* Use unwind-protect in gofmt, ensuring that temporary files will be
removed in all cases.
diff --git a/go-mode.el b/go-mode.el
index 883463f..4f45faa 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -394,7 +394,7 @@ For mode=set, all covered lines will have this weight."
`(
("\\(`[^`]*`\\)" 1 font-lock-multiline) ;; raw string literal, needed for
font-lock-syntactic-keywords
- (,(concat (go--regexp-enclose-in-symbol "type")
"[[:space:]]+\\([^[:space:]]+\\)") 1 font-lock-type-face) ;; types
+ (,(concat (go--regexp-enclose-in-symbol "type")
"[[:space:]]+\\([^[:space:](]+\\)") 1 font-lock-type-face) ;; types
(,(concat (go--regexp-enclose-in-symbol "type") "[[:space:]]+"
go-identifier-regexp "[[:space:]]*" go-type-name-regexp) 1 font-lock-type-face)
;; types
(,(concat "[^[:word:][:multibyte:]]\\[\\([[:digit:]]+\\|\\.\\.\\.\\)?\\]"
go-type-name-regexp) 2 font-lock-type-face) ;; Arrays/slices
(,(concat "\\(" go-identifier-regexp "\\)" "{") 1 font-lock-type-face)