-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scrooge: fix handling of the function separator
Problem The thrift parser is not handling optional function separators correctly. The ; or , separator appears AFTER the annotation section, not before it. https://github.com/apache/thrift/blob/master/compiler/cpp/src/thrift/thrifty.yy#L800 Solution Rearranging the term opt(listSeparator) after defaultedAnnotations solves the problem. Signed-off-by: Bryce Anderson <[email protected]> Differential Revision: https://phabricator.twitter.biz/D467476
- Loading branch information
1 parent
8d995d7
commit b72a08c
Showing
3 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters