mirror of
https://github.com/golang/go
synced 2024-11-21 09:04:45 -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:
parent
03f42934c1
commit
3dc6c9e64d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user