Commit d0e03932 authored by liujisi@google.com's avatar liujisi@google.com

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

parent d2967cda
...@@ -71,8 +71,8 @@ syn match pbInt /\<0[xX]\x+\>/ ...@@ -71,8 +71,8 @@ syn match pbInt /\<0[xX]\x+\>/
syn match pbFloat /\<-\?\d*\(\.\d*\)\?/ syn match pbFloat /\<-\?\d*\(\.\d*\)\?/
syn region pbComment start="\/\*" end="\*\/" contains=@pbCommentGrp syn region pbComment start="\/\*" end="\*\/" contains=@pbCommentGrp
syn region pbComment start="//" skip="\\$" end="$" keepend 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 || !exists("did_proto_syn_inits")
if version < 508 if version < 508
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment