From 5325de1808918013c8864d1683f8b6a27a60bd71 Mon Sep 17 00:00:00 2001 From: "liujisi@google.com" Date: Tue, 5 Jul 2011 04:52:47 +0000 Subject: Support for C-style comments in editors/proto.vim -- patch from infnty. --- editors/proto.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editors') diff --git a/editors/proto.vim b/editors/proto.vim index 42f33075..c262e290 100644 --- a/editors/proto.vim +++ b/editors/proto.vim @@ -69,8 +69,7 @@ syn keyword pbBool true false syn match pbInt /-\?\<\d\+\>/ syn match pbInt /\<0[xX]\x+\>/ syn match pbFloat /\<-\?\d*\(\.\d*\)\?/ -" TODO: .proto also supports C-style block comments; -" see /usr/share/vim/vim70/syntax/c.vim for how it's done. +syn region pbComment start="\/\*" end="\*\/" contains=@pbCommentGrp syn region pbComment start="//" skip="\\$" end="$" keepend contains=@pbCommentGrp syn region pbString start=/"/ skip=/\\"/ end=/"/ syn region pbString start=/'/ skip=/\\'/ end=/'/ -- cgit v1.2.3