code-blocks icon indicating copy to clipboard operation
code-blocks copied to clipboard

Protobuf language support does not handle `oneof`

Open ProPorygon opened this issue 3 years ago • 1 comments

The code highlighting support for text in protobuf format does not handle oneof fields. For example:

message OneofMessage {
    oneof choices {
        int32 some_number = 1;
        string some_string = 2;
    }
}

should be valid protobuf text, but code-blocks currently renders this as: image with no highlighting and incorrect indentation.

ProPorygon avatar Jul 15 '20 16:07 ProPorygon

Formatting seemed to work as expected when I tried to reproduce this: image

Can you still reproduce this issue? If so, can you put the unformatted code in a public document and post a link to it in this issue?

alexwforsythe avatar Sep 09 '20 00:09 alexwforsythe