From: Christian Himpel Date: Thu, 5 Aug 2010 00:31:00 +0000 (+1000) Subject: misc/vim: highlight misspelled words only in comments X-Git-Tag: weekly.2010-08-04~5 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3dc6c9e64d8de9931ed621aaa15884512014afd2;p=gostls13.git misc/vim: highlight misspelled words only in comments R=adg CC=golang-dev https://golang.org/cl/1915043 --- 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