Skip to content

Block comment ignores strings #58

Open
@PavelVozenilek

Description

@PavelVozenilek

This failed:

/*
void main() {
    println("Hello /* world"); // <<< open block comment in a string
}
*/

void main() {
    println("Hello world");
}

with error:

main.delta:1:1: error: unterminated block comment
/*
^

I noticed, that in file parser/lex.cpp the function Lexer::readBlockComment doesn't handle strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions