Ver Fonte

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

liujisi@google.com há 13 anos atrás
pai
commit
d0e03932c1
1 ficheiros alterados com 2 adições e 2 exclusões
  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