When a newline character appears immediately after a multiline or documentation comment, the lexer generates a newline token. This causes syntax errors.
The following code reproduces this bug:
class Example
/**
* Hello
*/
function hello()
;
A possible fix is to update the lexer is consume newline characters that immediately follow these comments.
When a newline character appears immediately after a multiline or documentation comment, the lexer generates a newline token. This causes syntax errors.
The following code reproduces this bug:
A possible fix is to update the lexer is consume newline characters that immediately follow these comments.