diff --git a/doc/src/lexer_tutorial/001_lexer_gen.md b/doc/src/lexer_tutorial/001_lexer_gen.md index af4725bca..62bebc207 100644 --- a/doc/src/lexer_tutorial/001_lexer_gen.md +++ b/doc/src/lexer_tutorial/001_lexer_gen.md @@ -330,7 +330,7 @@ To this end `ignore patterns` can be specified. match { r"\s*" => { }, // The default whitespace skipping is disabled an `ignore pattern` is specified r"//[^\n\r]*[\n\r]*" => { }, // Skip `// comments` - r"/\*([^\*]*\*+[^\*/])*([^\*]*\*+|[^\*])*\*/" => { }, // Skip `/* comments */` + r"/\*[^*]*\*+(?:[^/*][^*]*\*+)*/" => { }, // Skip `/* comments */` } ```