Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Teach protobuffs how to skip directives it doesn't understand

  • Loading branch information...
commit 10f46ae0ce29c57d0ab9e94f52e75e8c2bc1779c 1 parent 8caeb5d
Kevin Smith authored Vagabond committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/protobuffs_compile.erl
View
3  src/protobuffs_compile.erl
@@ -423,6 +423,9 @@ collect_full_messages([{extend, Name, ExtendedFields} | Tail], Collected) ->
),
NewCollected = Collected#collected{msg=lists:keyreplace(ListName,1,CollectedMsg,{ListName,ExtendedFieldsOut})},
collect_full_messages(Tail, NewCollected);
+%% Skip anything we don't understand
+collect_full_messages([_|Tail], Acc) ->
+ collect_full_messages(Tail, Acc);
collect_full_messages([], Collected) ->
Collected.
Please sign in to comment.
Something went wrong with that request. Please try again.