diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
commit | 3e45412327a2654a77944249962b3652e6142299 (patch) | |
tree | bc3bf69452afa055423cbe0c5cfa8ca357df6ccf /misc/emacs | |
parent | c533680039762cacbc37db8dc7eed074c3e497be (diff) | |
download | golang-upstream/2011.01.12.tar.gz |
Imported Upstream version 2011.01.12upstream/2011.01.12
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 |