ctaggart / froto

Froto: F# Protocol Buffers
MIT License
146 stars 27 forks source link

Allow identifiers to start with underscore #94

Closed kevmal closed 5 years ago

kevmal commented 5 years ago

As titled. This

syntax = "proto3";

message SearchRequest {
  string _query = 1;
}

Should be valid.

jhugard commented 5 years ago

According to the proto2 and proto3 language specifications, identifiers (ident) must start with a letter, optionally followed by one or more letters, digits, or underscores. A leading underscore is not a valid identifier.