1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:54:40 -07:00

misc/vim: highlight misspelled words only in comments

R=adg
CC=golang-dev
https://golang.org/cl/1915043
This commit is contained in:
Christian Himpel 2010-08-05 10:31:00 +10:00 committed by Andrew Gerrand
parent 03f42934c1
commit 3dc6c9e64d

View 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