mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
Strings in JSON style thrift constants do not need quotes
Summary: Cause it's just too much work to put in quotes sometimes. struct thing = { a : 325, bb : 5632} OBVIOUSLY a and bb are strings. Duh. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664882 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aa7671d041
commit
67fc63410d
@ -372,6 +372,12 @@ ConstValue:
|
||||
$$ = new t_const_value();
|
||||
$$->set_string($1);
|
||||
}
|
||||
| tok_identifier
|
||||
{
|
||||
pdebug("ConstValue => tok_identifier");
|
||||
$$ = new t_const_value();
|
||||
$$->set_string($1);
|
||||
}
|
||||
| ConstList
|
||||
{
|
||||
pdebug("ConstValue => ConstList");
|
||||
|
Loading…
Reference in New Issue
Block a user