[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode cf557a3 024/495: Merge branch 'fix/gh-2'
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode cf557a3 024/495: Merge branch 'fix/gh-2' |
Date: |
Sat, 7 Aug 2021 09:04:36 -0400 (EDT) |
branch: elpa/go-mode
commit cf557a385a5e8aebbc66e22866e9bb628214c531
Merge: 850986e 7fb4e67
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>
Merge branch 'fix/gh-2'
Conflicts:
go-mode.el
---
go-mode.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/go-mode.el b/go-mode.el
index 393e7d3..d48b9e2 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -6,12 +6,16 @@
;; Bugs:
;; - Disable escapes in `` strings
;; - Correct indentation for http://sprunge.us/iEaN
-;; - fontify types in struct definitions
+;; - Fontify types in struct definitions
+;; - Fontify unicode in method receiver types, array/slice/map types
+;; and everywhere where type-name is being used
(defconst go-dangling-operators-regexp "[^-]-\\|[^+]\\+\\|[/*&><.=|^]")
(defconst gofmt-stdin-tag "<standard input>")
(defconst go-identifier-regexp "[[:word:][:multibyte:]_]+")
+(defconst go-type-regexp "[[:word:][:multibyte:]_*]+")
(defconst go-func-regexp (concat "\\<func\\>\\s *\\(" go-identifier-regexp
"\\)"))
+(defconst go-func-meth-regexp (concat "\\<func\\>\\s *\\((\\s *"
go-identifier-regexp "\\s +" go-type-regexp "\\s *)\\s *\\)?\\("
go-identifier-regexp "\\)("))
(defvar go-mode-syntax-table
(let ((st (make-syntax-table)))
@@ -214,11 +218,11 @@ built-ins, functions, and some types.")
(if (>= count 0)
(progn
(go--backward-irrelevant)
- (if (not (re-search-backward go-func-regexp nil t))
+ (if (not (re-search-backward go-func-meth-regexp nil t))
(setq failure t)))
- (if (looking-at go-func-regexp)
+ (if (looking-at go-func-meth-regexp)
(forward-char))
- (if (not (re-search-forward go-func-regexp nil t))
+ (if (not (re-search-forward go-func-meth-regexp nil t))
(setq failure t)))
(setq first nil)))
(if (< count 0)
- [nongnu] elpa/go-mode 4c5493b 036/495: also load diff-mode during compilation, (continued)
- [nongnu] elpa/go-mode 4c5493b 036/495: also load diff-mode during compilation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode faafd90 038/495: add autoload cookies, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode c97dacc 044/495: do not change the indentation of multiline comments, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 5fbf6bd 048/495: remove unnecessary progns, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 8065408 051/495: formatting, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode c14eb13 061/495: more test cases, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 5dc94e8 069/495: Remove enclosing quotes in go-import-add, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 426d2df 050/495: Improve indentation speed by not trying to indent unnested lines, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode d10c4bc 020/495: use /= instead of (not (=)), ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 37181ae 021/495: add feature for removing unused imports, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode cf557a3 024/495: Merge branch 'fix/gh-2',
ELPA Syncer <=
- [nongnu] elpa/go-mode 4372f5d 026/495: teach go-import-add how to uncomment imports, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 22427ec 028/495: update documentation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode cf14ed3 033/495: comment unused function go--common-prefix, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 8e413db 035/495: require diff-mode during compilation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 572c754 042/495: For continuation lines, do not assume the indentation of a multiline raw string, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 087f58f 043/495: don't expect a line end after labels or cases, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 54a102e 046/495: do not move cursor to beginning of line after indentation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 1128e71 052/495: do not try to turn off flymake if flymake isn't loaded, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 903768b 053/495: tweak godoc to behave more like help in emacs, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode e78baea 054/495: do not leave point at beginning of line when (not) indenting a comment, ELPA Syncer, 2021/08/07