{"action":"opened","issue":{"url":"https://api.github.com/repos/msoucy/dproto/issues/92","repository_url":"https://api.github.com/repos/msoucy/dproto","labels_url":"https://api.github.com/repos/msoucy/dproto/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/msoucy/dproto/issues/92/comments","events_url":"https://api.github.com/repos/msoucy/dproto/issues/92/events","html_url":"https://github.com/msoucy/dproto/issues/92","id":170873595,"number":92,"title":"Support `syntax = ...` statement","user":{"login":"WebDrake","id":125075,"avatar_url":"https://avatars.githubusercontent.com/u/125075?v=3","gravatar_id":"","url":"https://api.github.com/users/WebDrake","html_url":"https://github.com/WebDrake","followers_url":"https://api.github.com/users/WebDrake/followers","following_url":"https://api.github.com/users/WebDrake/following{/other_user}","gists_url":"https://api.github.com/users/WebDrake/gists{/gist_id}","starred_url":"https://api.github.com/users/WebDrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebDrake/subscriptions","organizations_url":"https://api.github.com/users/WebDrake/orgs","repos_url":"https://api.github.com/users/WebDrake/repos","events_url":"https://api.github.com/users/WebDrake/events{/privacy}","received_events_url":"https://api.github.com/users/WebDrake/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-12T13:40:37Z","updated_at":"2016-08-12T13:40:37Z","closed_at":null,"body":"`protoc` 3.0+ introduces a new `syntax = ...` statement that can be used to specify the protocol buffers version a definition file is intended to work with, i.e.\r\n\r\n```proto\r\nsyntax = \"proto2\";\r\n```\r\nor\r\n\r\n```proto\r\nsyntax = \"proto3\";\r\n```\r\n\r\nWhile theoretically the absence of this statement will cause `protoc` to assume that a `.proto` file is written in `proto2` (cf. https://developers.google.com/protocol-buffers/docs/proto3#simple), in practice it may be useful to support it, as we might reasonably assume that some 3rd-party protobuf definitions written with other languages in mind will start explicitly specifying the protobuf version."}}
{"actor":{"display_login":"WebDrake"}}