alexwforsythe / code-blocks

Syntax highlighting for Google Docs
https://www.alexwforsythe.com/code-blocks/
MIT License
698 stars 88 forks source link

Protobuf language support does not handle `oneof` #150

Open ProPorygon opened 4 years ago

ProPorygon commented 4 years ago

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.

alexwforsythe commented 3 years ago

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?