emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 5c1c546 307/495: Don't fontify parenthesis of mult


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 5c1c546 307/495: Don't fontify parenthesis of multi-line type declaration
Date: Sat, 7 Aug 2021 09:05:37 -0400 (EDT)

branch: elpa/go-mode
commit 5c1c546408bcf1f722e039786cbacb98061f228f
Author: Dominik Honnef <dominik@honnef.co>
Commit: Dominik Honnef <dominik@honnef.co>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]