diff options
author | Christian Himpel <chressie@googlemail.com> | 2010-08-05 10:31:00 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2010-08-05 10:31:00 +1000 |
commit | 3dc6c9e64d8de9931ed621aaa15884512014afd2 (patch) | |
tree | 7a1349e50bce0ac6d4f5058ad47025968d6196d3 | |
parent | 03f42934c126d732db2c1f22c2b53fe507f8b4d9 (diff) | |
download | go-3dc6c9e64d8de9931ed621aaa15884512014afd2.tar.gz go-3dc6c9e64d8de9931ed621aaa15884512014afd2.zip |
misc/vim: highlight misspelled words only in comments
R=adg
CC=golang-dev
https://golang.org/cl/1915043
-rw-r--r-- | misc/vim/syntax/go.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/vim/syntax/go.vim b/misc/vim/syntax/go.vim index d01f2e4e94..c7c404e40e 100644 --- a/misc/vim/syntax/go.vim +++ b/misc/vim/syntax/go.vim @@ -95,8 +95,8 @@ hi def link goConstants Keyword " Comments; their contents syn keyword goTodo contained TODO FIXME XXX BUG syn cluster goCommentGroup contains=goTodo -syn region goComment start="/\*" end="\*/" contains=@goCommentGroup -syn region goComment start="//" end="$" contains=@goCommentGroup +syn region goComment start="/\*" end="\*/" contains=@goCommentGroup,@Spell +syn region goComment start="//" end="$" contains=@goCommentGroup,@Spell hi def link goComment Comment hi def link goTodo Todo |