go-thrift
go-thrift copied to clipboard
Syntax error on map const when missing a comma
Example:
const map<string, string> Foo = {
"hello": "it's me"
"hi": "how are you",
}
Returns:
$ generator example.thrift $GOPATH/src
example.thrift:1:1 (0): rule SyntaxError: parser: syntax error
It works as expected if I add a trailing comma:
const map<string, string> Foo = {
"hello": "it's me",
"hi": "how are you",
}