From 3dc6c9e64d8de9931ed621aaa15884512014afd2 Mon Sep 17 00:00:00 2001 From: Christian Himpel Date: Thu, 5 Aug 2010 10:31:00 +1000 Subject: [PATCH] misc/vim: highlight misspelled words only in comments R=adg CC=golang-dev https://golang.org/cl/1915043 --- misc/vim/syntax/go.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/vim/syntax/go.vim b/misc/vim/syntax/go.vim index d01f2e4e94a..c7c404e40e1 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