diff options
Diffstat (limited to 'editors/proto.vim')
-rw-r--r-- | editors/proto.vim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/editors/proto.vim b/editors/proto.vim index 7cd1dbf..42f3307 100644 --- a/editors/proto.vim +++ b/editors/proto.vim @@ -1,6 +1,6 @@ " Protocol Buffers - Google's data interchange format " Copyright 2008 Google Inc. All rights reserved. -" https://developers.google.com/protocol-buffers/ +" http://code.google.com/p/protobuf/ " " Redistribution and use in source and binary forms, with or without " modification, are permitted provided that the following conditions are @@ -69,10 +69,11 @@ syn keyword pbBool true false syn match pbInt /-\?\<\d\+\>/ syn match pbInt /\<0[xX]\x+\>/ syn match pbFloat /\<-\?\d*\(\.\d*\)\?/ -syn region pbComment start="\/\*" end="\*\/" contains=@pbCommentGrp +" TODO: .proto also supports C-style block comments; +" see /usr/share/vim/vim70/syntax/c.vim for how it's done. 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 |