aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorliujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2011-07-05 04:52:47 +0000
committerliujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2011-07-05 04:52:47 +0000
commit5325de1808918013c8864d1683f8b6a27a60bd71 (patch)
tree6a061516adbc6bf19b733b7f1d78b969409084ed /editors
parent3239fec94cdd7876130b87070d2d71148d9ef50b (diff)
downloadprotobuf-5325de1808918013c8864d1683f8b6a27a60bd71.tar.gz
protobuf-5325de1808918013c8864d1683f8b6a27a60bd71.tar.bz2
protobuf-5325de1808918013c8864d1683f8b6a27a60bd71.zip
Support for C-style comments in editors/proto.vim -- patch from infnty.
Diffstat (limited to 'editors')
-rw-r--r--editors/proto.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/proto.vim b/editors/proto.vim
index 42f33075..c262e290 100644
--- a/editors/proto.vim
+++ b/editors/proto.vim
@@ -69,8 +69,7 @@ syn keyword pbBool true false
syn match pbInt /-\?\<\d\+\>/
syn match pbInt /\<0[xX]\x+\>/
syn match pbFloat /\<-\?\d*\(\.\d*\)\?/
-" 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="\/\*" end="\*\/" contains=@pbCommentGrp
syn region pbComment start="//" skip="\\$" end="$" keepend contains=@pbCommentGrp
syn region pbString start=/"/ skip=/\\"/ end=/"/
syn region pbString start=/'/ skip=/\\'/ end=/'/