Skip to content

Fix multiline and documentation comments #9

Description

@itssamuelrowe

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions