{"action":"opened","issue":{"url":"https://api.github.com/repos/k-bx/protocol-buffers/issues/23","labels_url":"https://api.github.com/repos/k-bx/protocol-buffers/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/k-bx/protocol-buffers/issues/23/comments","events_url":"https://api.github.com/repos/k-bx/protocol-buffers/issues/23/events","html_url":"https://github.com/k-bx/protocol-buffers/issues/23","id":126668290,"number":23,"title":"Add support for `syntax` declarations in .proto files.","user":{"login":"Daenyth","id":14644,"avatar_url":"https://avatars.githubusercontent.com/u/14644?v=3","gravatar_id":"","url":"https://api.github.com/users/Daenyth","html_url":"https://github.com/Daenyth","followers_url":"https://api.github.com/users/Daenyth/followers","following_url":"https://api.github.com/users/Daenyth/following{/other_user}","gists_url":"https://api.github.com/users/Daenyth/gists{/gist_id}","starred_url":"https://api.github.com/users/Daenyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daenyth/subscriptions","organizations_url":"https://api.github.com/users/Daenyth/orgs","repos_url":"https://api.github.com/users/Daenyth/repos","events_url":"https://api.github.com/users/Daenyth/events{/privacy}","received_events_url":"https://api.github.com/users/Daenyth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-14T14:48:22Z","updated_at":"2016-01-14T14:48:22Z","closed_at":null,"body":"`.proto` files can now have a `syntax` field at the top of the file, declaring what flavor is used explicitly.\r\n\r\nSince hprotoc supports proto2 syntax, it would be nice to support `syntax = \"proto2\"`, as using it currently causes compilation to fail.\r\nFiles with `syntax = \"proto3\"` could fail with a more descriptive error message instead of a syntax error.\r\n\r\nhttps://developers.google.com/protocol-buffers/docs/proto3#simple"}}