Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
8ccb7905
Commit
8ccb7905
authored
Jul 31, 2008
by
temporal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply Leandro Lucarella <llucax@gmail.com>'s patches for VIM highlighting
and not setting execute bit on protoc outputs.
parent
24856db0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
CONTRIBUTORS.txt
CONTRIBUTORS.txt
+1
-0
proto.vim
editors/proto.vim
+9
-1
command_line_interface.cc
src/google/protobuf/compiler/command_line_interface.cc
+1
-1
No files found.
CONTRIBUTORS.txt
View file @
8ccb7905
...
...
@@ -38,3 +38,4 @@ Non-Google patch contributors:
Kevin Ko <kevin.s.ko@gmail.com>
Johan Euphrosine <proppy@aminche.com>
Ulrich Kunitz <kune@deine-taler.de>
Leandro Lucarella <llucax@gmail.com>
editors/proto.vim
View file @
8ccb7905
...
...
@@ -23,6 +23,9 @@
" augroup filetype
" au! BufRead,BufNewFile *.proto setfiletype proto
" augroup end
"
" Or just create a new file called ~/.vim/ftdetect/proto.vim with the
" previous lines on it.
if
version
<
600
syntax
clear
...
...
@@ -32,6 +35,9 @@ endif
syn
case
match
syn
keyword pbTodo contained TODO FIXME XXX
syn
cluster pbCommentGrp contains
=
pbTodo
syn
keyword pbSyntax syntax import
option
syn
keyword pbStructure package message group
syn
keyword pbRepeat optional required repeated
...
...
@@ -50,7 +56,7 @@ 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
match
pbComment
/\/\/.*$/
syn
region pbComment
start
=
"//"
skip
=
"\\$"
end
=
"$"
keepend contains
=
@pbCommentGrp
syn
region pbString
start
=
/"/
skip
=
/\\"/
end
=
/"/
syn
region pbString
start
=
/'/
skip
=
/\\'/
end
=
/'/
...
...
@@ -62,6 +68,8 @@ if version >= 508 || !exists("did_proto_syn_inits")
command
-
nargs
=+
HiLink
hi
def link
<
args
>
endif
HiLink pbTodo Todo
HiLink pbSyntax Include
HiLink pbStructure Structure
HiLink pbRepeat Repeat
...
...
src/google/protobuf/compiler/command_line_interface.cc
View file @
8ccb7905
...
...
@@ -203,7 +203,7 @@ io::ZeroCopyOutputStream* CommandLineInterface::DiskOutputDirectory::Open(
do
{
file_descriptor
=
open
((
root_
+
filename
).
c_str
(),
O_WRONLY
|
O_CREAT
|
O_TRUNC
|
O_BINARY
,
0
777
);
O_WRONLY
|
O_CREAT
|
O_TRUNC
|
O_BINARY
,
0
666
);
}
while
(
file_descriptor
<
0
&&
errno
==
EINTR
);
if
(
file_descriptor
<
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment