Skip to content

Commit

Permalink
ignore services
Browse files Browse the repository at this point in the history
  • Loading branch information
tafia committed Jan 25, 2017
1 parent 2cc658f commit 6cea56b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion codegen/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,14 @@ named!(ignore<()>, do_parse!(
alt!(tag!("package") | tag!("option") | tag!("import")) >> many1!(br) >>
take_until_and_consume!(";") >> many0!(br) >> ()));

named!(service_ignore<()>, do_parse!(tag!("service") >> many1!(br) >> word >> many0!(br) >> tag!("{") >>
take_until_and_consume!("}") >> many0!(br) >> ()));

named!(message_or_enum<MessageOrEnum>, alt!(
message => { |m| MessageOrEnum::Msg(m) } |
enumerator => { |e| MessageOrEnum::Enum(e) } |
ignore => { |_| MessageOrEnum::Ignore } ));
ignore => { |_| MessageOrEnum::Ignore } |
service_ignore => { |_| MessageOrEnum::Ignore } ));

named!(pub file_descriptor<FileDescriptor>, do_parse!(
many0!(br) >> syntax: opt!(syntax) >> many0!(br) >>
Expand Down

0 comments on commit 6cea56b

Please sign in to comment.