Lyricdev
GitHub

LYR-LEX0002

a block comment that is not closed

error ยท spec 01-lexical

A /* comment runs to the end of the file without its */. Block comments nest, so a /* inside one needs its own */ as well.

Explanation

A block comment ends at the */ that matches its /*; one opened inside it has to be closed first. A comment left open swallows the rest of the file.

Close the comment, and every comment opened inside it.

Wrong

fn main(): void {
}
/* not closed
fn main(): void {
}
/* closed */