Browse files

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

  • Loading branch information...
1 parent 9e569fc commit d6e4512a94873f80ca9705b72a3afe5f818f96b2 @pherl pherl committed Jul 13, 2012
Showing with 2 additions and 2 deletions.
  1. +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

0 comments on commit d6e4512

Please sign in to comment.