From d0e03932c1890c70fa7625a27cd8c237e142a27e Mon Sep 17 00:00:00 2001 From: "liujisi@google.com" Date: Fri, 13 Jul 2012 06:03:42 +0000 Subject: Fix issue/333. skip any escaped characters in quotes. --- editors/proto.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editors') diff --git a/editors/proto.vim b/editors/proto.vim index c262e290..2a25fa60 100644 --- a/editors/proto.vim +++ b/editors/proto.vim @@ -71,8 +71,8 @@ syn match pbInt /\<0[xX]\x+\>/ syn match pbFloat /\<-\?\d*\(\.\d*\)\?/ 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=/'/ +syn region pbString start=/"/ skip=/\\./ end=/"/ +syn region pbString start=/'/ skip=/\\./ end=/'/ if version >= 508 || !exists("did_proto_syn_inits") if version < 508 -- cgit v1.2.3