github.com/jhump/protocompile@v0.0.0-20221021153901-4f6f732835e8/parser/errors.go (about)

     1  package parser
     2  
     3  import "errors"
     4  
     5  // ErrNoSyntax is a sentinel error that may be passed to a warning reporter.
     6  // The error the reporter receives will be wrapped with source position that
     7  // indicates the file that had no syntax statement.
     8  var ErrNoSyntax = errors.New("no syntax specified; defaulting to proto2 syntax")