Skip to content

Commit

Permalink
Allow spaces after "chan<-"
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 authored and dominikh committed Jul 4, 2014
1 parent c2bf889 commit 61aafe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ For mode=set, all covered lines will have this weight."
(,(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 "chan") "[[:space:]]*\\(?:<-[[: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
;; TODO do we actually need this one or isn't it just a function call?
(,(concat "\\.\\s *(" go-type-name-regexp) 1 font-lock-type-face) ;; Type conversion
Expand Down

0 comments on commit 61aafe9

Please sign in to comment.