github.com/yoheimuta/protolint@v0.49.8-0.20240515023657-4ecaebb7575d/_testdata/rules/order/orderWithComments.proto (about)

     1  // Syntax here
     2  syntax = "proto3"; // Inline syntax comment
     3  
     4  /* Package comment
     5  Line 2
     6  Line 3
     7  */
     8  package my.package; // Inline package comment /* comment */
     9  
    10  /*
    11  License information
    12  */
    13  
    14  // Before outer message
    15  message Outer { /*
    16   Inside outer message */
    17      // Option
    18      option (my_option).a = true; // Inline option
    19      // inner is an inner message.
    20      message Inner {   // Level 2
    21                        // field 1
    22                        int64 ival = 1; // Inline field 1
    23                        // after field 1
    24      } // Inline Innter Message
    25      repeated Inner inner_messages = 2; // Inline field 2
    26  } // Trailing outer message
    27  
    28  // Last comments
    29  /*
    30  License information
    31  */