[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/go-mode c1074a1 114/495: improve regexps for array, slice
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/go-mode c1074a1 114/495: improve regexps for array, slice and map types |
Date: |
Sat, 7 Aug 2021 09:04:54 -0400 (EDT) |
branch: elpa/go-mode
commit c1074a12edfe8f2abdabe67643fc453491cbccea
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>
improve regexps for array, slice and map types
Closes gh-28
---
go-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/go-mode.el b/go-mode.el
index ce253d3..980a182 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -100,9 +100,9 @@
`(
(,(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
"\\(?:[[:space:]]+\\|\\]\\)\\[\\([[:digit:]]+\\|\\.\\.\\.\\)?\\]"
go-type-name-regexp) 2 font-lock-type-face) ;; Arrays/slices
- (,(concat "map\\[[^]]+\\]" go-type-name-regexp) 1 font-lock-type-face) ;;
map value type
+ (,(concat "[^[:word:][:multibyte:]]\\[\\([[:digit:]]+\\|\\.\\.\\.\\)?\\]"
go-type-name-regexp) 2 font-lock-type-face) ;; Arrays/slices
(,(concat "\\(" go-identifier-regexp "\\)" "{") 1 font-lock-type-face)
+ (,(concat (go--regexp-enclose-in-symbol "map") "\\[[^]]+\\]"
go-type-name-regexp) 1 font-lock-type-face) ;; map value type
(,(concat (go--regexp-enclose-in-symbol "map") "\\[" go-type-name-regexp)
1 font-lock-type-face) ;; map key type
(,(concat (go--regexp-enclose-in-symbol "chan") "[[:space:]]*\\(?:<-\\)?"
go-type-name-regexp) 1 font-lock-type-face) ;; channel type
(,(concat (go--regexp-enclose-in-symbol "\\(?:new\\|make\\)")
"\\(?:[[:space:]]\\|)\\)*(" go-type-name-regexp) 1 font-lock-type-face) ;;
new/make type
- [nongnu] elpa/go-mode 71c7f59 101/495: use correct regexps for labels, (continued)
- [nongnu] elpa/go-mode 71c7f59 101/495: use correct regexps for labels, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 3139c0f 107/495: fix regexp-opt usage for emacs <24, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 8fb900e 062/495: refactor, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 183c028 068/495: use (car (last)) instead of (car (reverse)), ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 0f71cee 083/495: add autoload cookie to gofmt-before-save, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode f0059f6 098/495: in go-packages, skip over directories that do not contain a /pkg subdirectory, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 3d3ba73 103/495: Use completing-read in godoc--read-query, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 67bb849 108/495: use \\_< instead of \\< and do so in a way that won't break XEmacs, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 4637dd6 110/495: Mention gofmt rewrite in README, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode d910a0d 112/495: Make _ a word constituent to accomodate inferiority of XEmacs, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode c1074a1 114/495: improve regexps for array, slice and map types,
ELPA Syncer <=
- [nongnu] elpa/go-mode a88f1d5 115/495: add support for godef, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 4935203 117/495: add guidelines for contributions, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 0e5fd93 119/495: update LEGAL, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 92102a5 120/495: do not rely on find-lisp, xemacs doesn't have that, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode bb66ca4 122/495: xemacs comment handling, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 8476d21 123/495: provide alternative to syntax-ppss for older versions of xemacs, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 052a356 125/495: remove unused variables, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode 60dec2c 126/495: add godef documentation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode dc68bd2 124/495: add a lot of compatibility for xemacs, ELPA Syncer, 2021/08/07
- [nongnu] elpa/go-mode b880a36 139/495: derive go-mode from prog-mode if possible, ELPA Syncer, 2021/08/07