diff options
Diffstat (limited to 'misc/emacs')
-rw-r--r-- | misc/emacs/go-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el index e27ee7438..2624e87cb 100644 --- a/misc/emacs/go-mode.el +++ b/misc/emacs/go-mode.el @@ -27,8 +27,8 @@ (defvar go-mode-syntax-table (let ((st (make-syntax-table))) - ;; Symbols - (modify-syntax-entry ?_ "_" st) + ;; Add _ to :word: character class + (modify-syntax-entry ?_ "w" st) ;; Operators (punctuation) (modify-syntax-entry ?+ "." st) @@ -92,7 +92,7 @@ some syntax analysis.") ;; Map key type (,(concat "\\<map\\s *\\[" type-name) 1 font-lock-type-face) ;; Channel value type - (,(concat "\\<chan\\s *\\(?:<-\\)?" type-name) 1 font-lock-type-face) + (,(concat "\\<chan\\>\\s *\\(?:<-\\)?" type-name) 1 font-lock-type-face) ;; new/make type (,(concat "\\<\\(?:new\\|make\\)\\>\\(?:\\s \\|)\\)*(" type-name) 1 font-lock-type-face) ;; Type conversion |