浏览代码

Fix issue/333. skip any escaped characters in quotes.

liujisi@google.com 13 年之前
父节点
当前提交
d0e03932c1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editors/proto.vim

+ 2 - 2
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