profmt 0.1.0

A fast, deterministic, configurable Protocol Buffers formatter built on tree-sitter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
syntax = "proto2";

package example;

message Fields {
    optional int32 spaced = 1;
    required .fully.Qualified.Type qualified = 2;
    repeated string tags = 3 [packed = true, (custom).weight = 1.5];
    optional bytes raw = 4 [default = "\x00\x01"];
    optional float ratio = 5 [default = -1.5e3];
    optional int32 octal = 6 [default = 0755];
    optional int32 hex = 7 [default = 0xFF];
    optional Colour colour = 8 [default = RED, (custom).description = "a default colour with a long description that pushes this field option list past the line width"];
    optional string joined = 9 [default = "one " "two"];
    optional string quoted = 10 [default = 'it\'s'];
    optional string plain = 11 [default = "plain"];
    optional stile.services.login_provider.InstitutionLoginProviderIndexResponse institution_login_providers_index_response = 12;
}