protobuf.js icon indicating copy to clipboard operation
protobuf.js copied to clipboard

illegal token '*'

Open jackqqxu opened this issue 3 years ago • 2 comments

protobuf.js version:

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

if the code is :

// comments

/**
 * another comments
 **/

it will be OK

jackqqxu avatar May 21 '21 05:05 jackqqxu

I'm having the same problem

node v16.14.0 protobufjs v6.11.2 window11

engvuchen avatar Mar 15 '22 03:03 engvuchen

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, });

engvuchen avatar Mar 15 '22 03:03 engvuchen

I'm having the same problem

Yubiao-Li avatar Feb 21 '23 12:02 Yubiao-Li

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

//
/*
*/

simon-paris avatar May 15 '23 07:05 simon-paris