Commit 3dc6c9e6 authored by Christian Himpel's avatar Christian Himpel Committed by Andrew Gerrand

misc/vim: highlight misspelled words only in comments

R=adg
CC=golang-dev
https://golang.org/cl/1915043
parent 03f42934
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment