kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/cxx/indexer/proto/testdata/corner_cases/tabs.proto (about)

     1  // Test file to make sure we're treating tabs correctly (b/8262123).
     2  
     3  syntax = "proto2";
     4  
     5  import "kythe/cxx/indexer/proto/testdata/other-package.proto";
     6  
     7  package proto_kythe_test;
     8  option java_package = "io.kythe";
     9  
    10  // This proto deliberately has tab-based whitespacing.  This exposes a bug in
    11  // how our indexer assigns charno locations to proto files formatted this way.
    12  // The tabs should not be removed or the test will be broken or invalidated.
    13  
    14  //- @MessageWithTabsInside defines/binding MessageNode
    15  message MessageWithTabsInside {
    16  	//- @foo defines/binding FooField
    17  	//- FooField childof MessageNode
    18  	optional string foo = 1;
    19  
    20  	//- @MessageWithTabsInside ref MessageNode
    21  	//- @bar defines/binding BarField
    22  	//- BarField childof MessageNode
    23  	optional MessageWithTabsInside bar = 2;
    24  
    25  	//- @Foo ref FooMessage
    26  	//- @foo_data defines/binding AnotherFooField
    27  	//- AnotherFooField childof MessageNode
    28  	optional itsapackage.Foo foo_data = 3;
    29  
    30  	//- @Bar ref BarMessage
    31  	//- @bar_data defines/binding AnotherBarField
    32  	//- AnotherBarField childof MessageNode
    33  	optional itsapackage.Bar bar_data = 4;
    34  }