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

illegal token '*' #1616

Open
jackqqxu opened this issue May 21, 2021 · 4 comments
Open

illegal token '*' #1616

jackqqxu opened this issue May 21, 2021 · 4 comments

Comments

@jackqqxu
Copy link

jackqqxu commented May 21, 2021

protobuf.js version:

// comments
/**
 * another comments
 **/

if the code is :

// comments

/**
 * another comments
 **/

it will be OK

@engvuchen
Copy link

I'm having the same problem

node v16.14.0
protobufjs v6.11.2
window11

@engvuchen
Copy link

I'm having the same problem

node v16.14.0 protobufjs v6.11.2 window11

protobuf.parse('test.proto', {
keepCase: true,
alternateCommentMode: true,
preferTrailingComment: true,
});

@Yubiao-Li
Copy link

I'm having the same problem

@simon-paris
Copy link
Contributor

I also encountered this. The minimum repro case is to enable alternateCommentMode and attempt to parse this:

//
/*
*/

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

4 participants