Skip to content

Commit 3cff48d

Browse files
lakshaygacozzette
authored andcommitted
Spell check only comments and strings in vim
1 parent 9d9c670 commit 3cff48d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

editors/proto.vim

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ syn keyword pbBool true false
6969
syn match pbInt /-\?\<\d\+\>/
7070
syn match pbInt /\<0[xX]\x+\>/
7171
syn match pbFloat /\<-\?\d*\(\.\d*\)\?/
72-
syn region pbComment start="\/\*" end="\*\/" contains=@pbCommentGrp
73-
syn region pbComment start="//" skip="\\$" end="$" keepend contains=@pbCommentGrp
74-
syn region pbString start=/"/ skip=/\\./ end=/"/
75-
syn region pbString start=/'/ skip=/\\./ end=/'/
72+
syn region pbComment start="\/\*" end="\*\/" contains=@pbCommentGrp,@Spell
73+
syn region pbComment start="//" skip="\\$" end="$" keepend contains=@pbCommentGrp,@Spell
74+
syn region pbString start=/"/ skip=/\\./ end=/"/ contains=@Spell
75+
syn region pbString start=/'/ skip=/\\./ end=/'/ contains=@Spell
7676

7777
if version >= 508 || !exists("did_proto_syn_inits")
7878
if version < 508

0 commit comments

Comments
 (0)