You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once the parser passes a /* token, it proceeds to search for a */ token, throwing a SyntaxError as soon as it encounter an asterisk not immediately followed by a slash. Comments can contain asterisks though. Many of these comments in project files are autogenerated, for example based on a file name which could have an asterisk in it.
Could the parser ignore * characters between /* and */, continuing its search without issue until it finds the closing */?
To reproduce the below, call the parser on any (file containing a) line such as /* Upload *.dSYM to Firebase */:
Once the parser passes a
/*
token, it proceeds to search for a*/
token, throwing a SyntaxError as soon as it encounter an asterisk not immediately followed by a slash. Comments can contain asterisks though. Many of these comments in project files are autogenerated, for example based on a file name which could have an asterisk in it.Could the parser ignore
*
characters between/*
and*/
, continuing its search without issue until it finds the closing*/
?To reproduce the below, call the parser on any (file containing a) line such as
/* Upload *.dSYM to Firebase */
:The text was updated successfully, but these errors were encountered: