This is an archive of the discontinued LLVM Phabricator instance.

DISCUSS investigate multiline <>-message fields in proto options
AbandonedPublic

Authored by krasimir on Jun 21 2017, 4:50 AM.

Details

Reviewers
djasper
Summary

This shows that we don't currently support multiline brace message fields
in proto options yet.

This currently gets formatted (with colum limit 60) into:

option (MyProto.options) = {
  msg_field: <
    field_a: OK field_b: OK field_c: OK field_d: OK
    field_e: OK
    field_f: OK >
}

Event Timeline

krasimir created this revision.Jun 21 2017, 4:50 AM
krasimir edited the summary of this revision. (Show Details)Jun 21 2017, 4:52 AM
krasimir added a reviewer: djasper.
djasper edited edge metadata.Jun 21 2017, 8:54 AM

So, what do you want to discuss? The problem is (I think) that we treat a colon as "this can't be a template" in TokenAnnotator::parseAngle. We probably shouldn't do that for proto text.

do we wanna keep the '<' classify as a template opener or as a dict literal?

I am not really sure. Dict literals seems cleaner, but it might confuse us in other places.

krasimir abandoned this revision.Jun 26 2017, 7:55 AM