]> Cypherpunks repositories - gostls13.git/commitdiff
misc/vim: highlight misspelled words only in comments
authorChristian Himpel <chressie@googlemail.com>
Thu, 5 Aug 2010 00:31:00 +0000 (10:31 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 5 Aug 2010 00:31:00 +0000 (10:31 +1000)
R=adg
CC=golang-dev
https://golang.org/cl/1915043

misc/vim/syntax/go.vim

index d01f2e4e94a7d2875c82db591644f4d6ad3512a2..c7c404e40e1c04337eccdfe14e30f174bb81c427 100644 (file)
@@ -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