Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse throws error #59

Open
forclan opened this issue Mar 11, 2019 · 0 comments
Open

parse throws error #59

forclan opened this issue Mar 11, 2019 · 0 comments

Comments

@forclan
Copy link

forclan commented Mar 11, 2019

version: 1.1.5

a.thrift

/**奖**/
/*****/
struct Hello {
    /*commentthatcauseerror*/
    7: optional i32 A,
}

run thrift-parser a.thrift will throw error like this Message: Invalid start to Thrift statement 7.

token is

{"type":"IntegerLiteral","text":"7","loc":{"start":{"line":5,"column":5,"index":65},"e
nd":{"line":5,"column":6,"index":66}}}

It seems that parser did not recognize continuous comments which contains non-english words.

@kevin-greene-ck kevin-greene-ck added bug and removed bug labels Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants